Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setup scripts for newly-deployed image server #85

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions update_image_services/image_server_arcgis_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
set -ex

/opt/arcgis/server/tools/authorizeSoftware -f ArcGISImageServer_ArcGISServer_1097915.prvc -e [email protected]
/opt/arcgis/server/tools/authorizeSoftware -f ArcGISGISServerAdvanced_ArcGISServer_1097910.prvc -e [email protected]

wget https://gisupdates.esri.com/QFE/S-1091-P-762/ArcGIS-1091-S-K1-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-770/ArcGIS-1091-S-SQ-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-798/ArcGIS-1091-S-SEC2022U1-PatchB-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-801/ArcGIS-1091-S-UNDM2-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-807/ArcGIS-1091-S-MPS-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-824/ArcGIS-1091-S-SEC2022U2-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-854/ArcGIS-1091-S-UNDM3-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/S-1091-P-856/ArcGIS-1091-S-GSQ-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/PFA-1091-P-785/ArcGIS-1091-PFA-SEC2022U1-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/PFA-1091-P-805/ArcGIS-1091-PFA-QCS-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/PFA-1091-P-839/ArcGIS-1091-PFA-SEC2022U2-PatchB-linux.tar
wget https://gisupdates.esri.com/QFE/PFA-1091-P-858/ArcGIS-1091-PFA-ESFD-Patch-linux.tar
wget https://gisupdates.esri.com/QFE/DS-1091-P-806/ArcGIS-1091-DS-DE-Patch-linux.tar

for f in *.tar; do tar -xvf "$f"; done

for f in S-1091-P-*/applypatch; do "$f" -s -server; done
for f in PFA-1091-P-*/applypatch; do "$f" -s -portal; done
for f in DS-1091-P-*/applypatch; do "$f" -s -datastore; done

/opt/arcgis/server/tools/patchnotification/patchnotification

/opt/arcgis/server/tools/createsite/createsite.sh --username siteadmin --password $SITE_PASSWORD
14 changes: 14 additions & 0 deletions update_image_services/image_server_root_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -ex

apt update -y
apt upgrade -y
apt autoremove -y

cp /opt/arcgis/server/framework/etc/scripts/arcgisserver.service /etc/systemd/system/arcgisserver.service
chmod 600 /etc/systemd/system/arcgisserver.service
systemctl enable arcgisserver.service
systemctl start arcgisserver.service

sed -i 's/8080/6080/' /etc/iptables/rules.v4
sed -i 's/8443/6443/' /etc/iptables/rules.v4