This commit is contained in:
Gogs
2020-05-10 19:46:14 +04:00
parent fcc385ef5b
commit 36bd57086a
2 changed files with 1 additions and 9 deletions

View File

@@ -2,11 +2,3 @@ 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

View File

@@ -9,7 +9,7 @@ echo '[Unit]
Description=Запуск '$ServiceName'
[Service]
WorkingDirectory='$PWD'
WorkingDirectory='$PWD'/shell
ExecStart='$PWD'/shell/Gunicorn.sh
User='$USER'
Group='$USER'