This commit is contained in:
Gogs
2020-05-10 18:29:14 +04:00
parent 7f4e11b073
commit 6a2cd57e6e
17 changed files with 297 additions and 60 deletions

12
shell/1-UpdateClient.sh Executable file
View File

@@ -0,0 +1,12 @@
git config --global credential.helper cache #чтение настроек авторизации
git reset --hard #игнорировать изменения у клиента
git fetch
git pull
#systemctl --user restart $(ls *.service | sed 's/\..*//')
#Устанавливаем получаем имя файла сервиса
FNAME=$(ls *.service )
echo "Запускаем сервис для пользователя $FNAME"
systemctl --user restart $FNAME