diff --git a/restic/restic-sftp/install-restic-sftp.sh b/restic/restic-sftp/install-restic-sftp.sh index 125a282..db6c77f 100644 --- a/restic/restic-sftp/install-restic-sftp.sh +++ b/restic/restic-sftp/install-restic-sftp.sh @@ -12,6 +12,7 @@ wget -q http://192.168.1.50/scripts/restic/restic-sftp/restic-sftp-init.sh mv /root/restic-sftp-* /root/scripts/restic mv /root/export-* /root/scripts/restic chmod +x /root/scripts/restic/* +sed -i "s/changemepls/$(cat /etc/hostname | tr '[:upper:]' '[:lower:]')/g" /root/scripts/restic/* if [[ ! -f /root/.ssh/config ]]; then touch /root/.ssh/config