Update change-le-server.sh

This commit is contained in:
2019-04-13 22:03:41 -05:00
parent 1b2140d01e
commit ff6684bb6f

View File

@@ -2,13 +2,11 @@
mount -l -t fuse.sshfs | awk -F " " '{print "umount " $3}' | bash mount -l -t fuse.sshfs | awk -F " " '{print "umount " $3}' | bash
ssh-copy-id le@webserver.scity.us
sed -i 's/10.10.10.80/webserver.scity.us/g' /etc/fstab sed -i 's/10.10.10.80/webserver.scity.us/g' /etc/fstab
sed -i 's/10.5.10.56/webserver.scity.us/g' /etc/fstab sed -i 's/10.5.10.56/webserver.scity.us/g' /etc/fstab
sed -i 's/keepalived.scity.us/webserver.scity.us/g' /etc/fstab sed -i 's/keepalived.scity.us/webserver.scity.us/g' /etc/fstab
yes | ssh-copy-id -f le@10.5.10.56 yes | ssh-copy-id -f le@webserver.scity.us
mount -a mount -a
if [ -f /opt/copycerts.sh ]; then if [ -f /opt/copycerts.sh ]; then
/opt/copycerts.sh /opt/copycerts.sh