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

12 lines
308 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/keepalived.scity.us/g' /etc/fstab
sed -i 's/10.5.10.56/keepalived.scity.us/g' /etc/fstab
yes | ssh-copy-id -f le@keepalived.scity.us
mount -a
if [ -f /opt/copycerts.sh ]; then
/opt/copycerts.sh
fi