瀏覽代碼

creating systemd service in install.sh

blezz-tech 3 周之前
父節點
當前提交
2460073097
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      bin/install.sh

+ 10 - 0
bin/install.sh

@@ -76,6 +76,16 @@ else
     exit
 fi
 
+# Checking for sharix_open.service
+if [ -f sharix_open.service ]; then
+    echo "File sharix_open.service already exists"
+else
+    cp conf/sharix_open.service.example conf/sharix_open.service
+    echo "File sharix_open.service was successfully created"
+    echo "Write the settings for systemd service."
+    exit
+fi
+
 # Run Django migrations and other commands
 python manage.py makemigrations dbsynce tickets webservice_running landing user
 python manage.py migrate