testing sed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user