fix update script
This commit is contained in:
parent
f8ba9c6732
commit
8de45505e4
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
echo starting update
|
echo starting update
|
||||||
|
|
||||||
|
systemctl stop /lib/systemd/system/getty@tty1.service.d
|
||||||
|
|
||||||
|
cd /root/reHDD/
|
||||||
|
|
||||||
FILE=./ignoreDrives.conf
|
FILE=./ignoreDrives.conf
|
||||||
if test -f "$FILE"; then
|
if test -f "$FILE"; then
|
||||||
echo backup exits
|
echo backup exits
|
||||||
else
|
else
|
||||||
cp reHDD/ignoreDrives.conf ./ignoreDrives.conf
|
cp /root/reHDD/ignoreDrives.conf /root/ignoreDrives.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd reHDD
|
|
||||||
|
|
||||||
git reset
|
git reset
|
||||||
|
|
||||||
git stash force
|
git stash force
|
||||||
|
@ -23,4 +25,6 @@ git pull
|
||||||
|
|
||||||
make release
|
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