ensure additional JSON files are in place (#11183)

This commit is contained in:
Chris
2026-01-25 15:01:31 -05:00
committed by GitHub
parent 2a234829b8
commit f05927602c
2 changed files with 4 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ function update_script() {
cp -R .next/standalone ./ cp -R .next/standalone ./
chmod +x ./dist/cli.mjs chmod +x ./dist/cli.mjs
cp server/db/names.json ./dist/names.json cp server/db/names.json ./dist/names.json
cp server/db/ios_models.json ./dist/ios_models.json
cp server/db/mac_models.json ./dist/mac_models.json
msg_ok "Updated Pangolin" msg_ok "Updated Pangolin"
msg_info "Restoring config" msg_info "Restoring config"

View File

@@ -47,6 +47,8 @@ cd /opt/pangolin
EOF EOF
chmod +x /usr/local/bin/pangctl ./dist/cli.mjs chmod +x /usr/local/bin/pangctl ./dist/cli.mjs
cp server/db/names.json ./dist/names.json cp server/db/names.json ./dist/names.json
cp server/db/ios_models.json ./dist/ios_models.json
cp server/db/mac_models.json ./dist/mac_models.json
mkdir -p /var/config mkdir -p /var/config
cat <<EOF >/opt/pangolin/config/config.yml cat <<EOF >/opt/pangolin/config/config.yml