Quellcode durchsuchen

creating systemd service in install.sh

blezz-tech vor 3 Wochen
Ursprung
Commit
2460073097
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  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