Ricardo Jun
2018-11-26 f2eda285924ea603fdd0e3f2288a0aa9f4215207
commit | author | age
424a1b 1 ssh root@classroom rht-config-nat
cbc9b7 2 ssh root@services mkdir /tmp/dc39
424a1b 3 rsync -aPv * root@services:/tmp/dc39
cbc9b7 4 ssh root@services systemctl stop nexus
RJ 5 ssh root@services rm -rf /opt/nexus*
dfc5cc 6 ssh root@services wget -O /opt/nexus-latest-bundle.tar.gz https://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz 
RJ 7 ssh root@services tar xzvf /opt/nexus-latest-bundle.tar.gz -C /opt
cbc9b7 8 ssh root@services chown -R nexus:nexus /opt/nexus*
RJ 9 ssh root@services chown -R nexus:nexus /opt/sonatype-work
424a1b 10 nexus_dir=$(ssh root@services "ls /opt | grep nexus-2.14")
cbc9b7 11 ssh root@services ln -s /opt/${nexus_dir} /opt/nexus
f2eda2 12 ssh root@services tar xzvf /tmp/dc39/sonatype-work.tar.gz -C /opt
cbc9b7 13 ssh root@services systemctl start nexus