From 937ee02c754b7fb350475c2fcad38116527a81f8 Mon Sep 17 00:00:00 2001 From: Gogs Date: Tue, 10 Dec 2019 01:06:24 +0400 Subject: [PATCH] Updates --- InstallService.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/InstallService.sh b/InstallService.sh index 83ec31a..0b87631 100644 --- a/InstallService.sh +++ b/InstallService.sh @@ -1,13 +1,5 @@ -echo ' -[Unit] -Description=Запуск Основного сайта +FNAME=site_main.service -[Service] -ExecStart=/home/elforcer/FlaskSite/MainSite/Gunicorn.sh - -[Install] -WantedBy=multi-user.target -'>/etc/systemd/system/site_main.service - - -systemctl enable site_main.service +echo Install $FNAME +cp $FNAME /etc/systemd/system/$NAME +systemctl enable $FNAME