Преглед на файлове

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