fix update script

This commit is contained in:
Hendrik Schutter 2022-06-29 19:08:43 +02:00
parent f8ba9c6732
commit 8de45505e4
1 changed files with 8 additions and 4 deletions

View File

@ -2,15 +2,17 @@
echo starting update
systemctl stop /lib/systemd/system/getty@tty1.service.d
cd /root/reHDD/
FILE=./ignoreDrives.conf
if test -f "$FILE"; then
echo backup exits
else
cp reHDD/ignoreDrives.conf ./ignoreDrives.conf
cp /root/reHDD/ignoreDrives.conf /root/ignoreDrives.conf
fi
cd reHDD
git reset
git stash force
@ -23,4 +25,6 @@ git pull
make release
cp ../ignoreDrives.conf ./
cp /root/ignoreDrives.conf /root/reHDD/ignoreDrives.conf
systemctl start /lib/systemd/system/getty@tty1.service.d