Pfade angepasst

This commit is contained in:
SchiWaGoA 2024-04-12 20:31:36 +00:00
parent 8ef0ef1d25
commit 74262e1337

View File

@ -22,9 +22,9 @@ Funktionen
mkdir -p /home/scripts/default mkdir -p /home/scripts/default
mkdir -p /tmp/git mkdir -p /tmp/git
git clone https://git.retronerd.at/schiwagoa/weekly-updater.git /tmp/git/weekly-updater git clone https://git.retronerd.at/schiwagoa/weekly-updater.git /tmp/git/weekly-updater
cp /tmp/git/weekly-updater/weekly-update.v2.sh /home/scripts/default/weekly-update.v2.sh cp "/tmp/git/weekly-updater/weekly-updater.sh" "/home/scripts/default/"
chmod 755 -R /home/scripts/default chmod 755 -R /home/scripts/default
chmod +x /home/scripts/default/weekly-update.v2.sh chmod +x "/home/scripts/default/weekly-updater.sh"
cat <(crontab -l) <(echo "@weekly /home/scripts/default/weekly-update.v2.sh > /dev/null 2>&1") | crontab - cat <(crontab -l) <(echo "@weekly /home/scripts/default/weekly-update.v2.sh > /dev/null 2>&1") | crontab -
rm -r /tmp/git/weekly-updater rm -r /tmp/git/weekly-updater
``` ```