Compare commits

..

1 Commits

Author SHA1 Message Date
0af42b8217 Fix shebang line after setup 2021-10-13 15:15:00 -04:00

View File

@ -257,8 +257,7 @@ Description=Borg backup to ${BACKUP_HOST}
[Service]
Type=simple
WorkingDirectory=${BORG_DIR}
ExecStart=./backup.py
ExecStart=${BORG_DIR}/backup.py
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=6
@ -287,7 +286,7 @@ EOF
fi
}
update_readme()
update_paths()
{
sed -i \
-e "s!\${HOSTNAME}!$(hostname)!g" \
@ -296,6 +295,10 @@ update_readme()
-e "s!\${BACKUP_HOST}!${BACKUP_HOST}!g" \
-e "s!\${BACKUP_REPO}!${BACKUP_REPO}!g" \
README.md
sed -i\
-e "1c#!${BORG_DIR}/.venv/bin/python" \
backup.py
}
git_setup()
@ -323,7 +326,7 @@ configure_ssh
create_repo
export_keys
configure_systemd
update_readme
update_paths
git_setup
echo