This commit is contained in:
Gogs
2020-05-10 19:38:17 +04:00
parent f21d0ec938
commit fcc385ef5b
3 changed files with 1 additions and 0 deletions

12
shell/0-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