Ricardo Jun
2018-11-08 cbc9b7435b73bb00e6c287fdb26a9bef1659493d
Included nexus update
1 files added
11 ■■■■■ changed files
extras/backup/nexus-update.sh 11 ●●●●● patch | view | raw | blame | history
extras/backup/nexus-update.sh
New file
@@ -0,0 +1,11 @@
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 chown -R nexus:nexus /opt/nexus*
ssh root@services chown -R nexus:nexus /opt/sonatype-work
nexus_dir=$(ssh root@services ls /opt/nexus*)
ssh root@services ln -s /opt/${nexus_dir} /opt/nexus
ssh root@services systemctl start nexus