From afe4102a289c8b0eac711282cfd1f06206bd35c9 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 10:55:30 -0500 Subject: [PATCH] testing sed --- restic/restic-sftp/install-restic-sftp.sh | 1 + 1 file changed, 1 insertion(+) 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