From 8de45505e418ab7b937e4841414384a23200b303 Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 29 Jun 2022 19:08:43 +0200 Subject: [PATCH] fix update script --- scripts/update.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index f2b4394..c4479c0 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -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 \ No newline at end of file