Files
Misc-Scripts/change-le-server.sh

16 lines
424 B
Bash
Executable File

#!/usr/bin/env bash
mount -l -t fuse.sshfs | awk -F " " '{print "umount " $3}' | bash
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/keepalived.scity.us/webserver.scity.us/g' /etc/fstab
yes | ssh-copy-id -f le@10.5.10.56
mount -a
if [ -f /opt/copycerts.sh ]; then
/opt/copycerts.sh
elif [ -f /opt/install-certs.sh ]; then
/opt/install-certs.sh
fi