fix update script
This commit is contained in:
parent
f8ba9c6732
commit
8de45505e4
|
@ -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
|
Loading…
Reference in New Issue