testing sed

This commit is contained in:
2024-03-14 10:55:30 -05:00
parent dbb70e9493
commit afe4102a28

View File

@@ -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