initial-setup: fix script permissions
This commit is contained in:
parent
90e9310ae0
commit
2024519b16
|
@ -88,7 +88,9 @@ EOF
|
|||
# Copy templated files, filling in templates as needed
|
||||
install_templated_files()
|
||||
{
|
||||
for i in README.md notify.sh logs.sh; do
|
||||
DOCS="README.md"
|
||||
SCRIPTS="notify.sh logs.sh"
|
||||
for i in ${DOCS} ${SCRIPTS}; do
|
||||
sed -e "s!\${HOSTNAME}!${HOSTNAME}!g" \
|
||||
-e "s!\${BORG_DIR}!${BORG_DIR}!g" \
|
||||
-e "s!\${BORG_BIN}!${BORG_BIN}!g" \
|
||||
|
@ -99,6 +101,7 @@ install_templated_files()
|
|||
-e "s!\${SYSTEMD_UNIT}!${SYSTEMD_UNIT}!g" \
|
||||
templates/$i > $i
|
||||
done
|
||||
chmod +x ${SCRIPTS}
|
||||
}
|
||||
|
||||
# Update local paths in scripts
|
||||
|
|
0
templates/notify.sh
Executable file → Normal file
0
templates/notify.sh
Executable file → Normal file
Loading…
Reference in New Issue
Block a user