Ricardo Jun
2018-11-08 dfc5ccb02d45d164ed09ebb3d873a86eb5019ca3
included nexus update script
1 files modified
5 ■■■■■ changed files
extras/backup/nexus-update.sh 5 ●●●●● patch | view | raw | blame | history
extras/backup/nexus-update.sh
@@ -1,9 +1,10 @@
ssh root@sclassroom rht-config-nat
ssh root@services mkdir /tmp/dc39
ssh root@services rsync -aPv * /tmp/dc39
ssh root@services systemctl stop nexus
ssh root@services rm -rf /opt/nexus*
ssh root@services wget https://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz -p /opt
ssh root@services tar xzvf /opt/nexus*.tar.gz -C /opt
ssh root@services wget -O /opt/nexus-latest-bundle.tar.gz https://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz
ssh root@services tar xzvf /opt/nexus-latest-bundle.tar.gz -C /opt
ssh root@services chown -R nexus:nexus /opt/nexus*
ssh root@services chown -R nexus:nexus /opt/sonatype-work
nexus_dir=$(ssh root@services ls /opt/nexus*)