diff --git a/src/freedombone-app-gettogether b/src/freedombone-app-gettogether index 003133df304b131f5233d2cf2135e35afa028e8b..fb347197a7f025bac809ae0bfddf2ae019f7de60 100755 --- a/src/freedombone-app-gettogether +++ b/src/freedombone-app-gettogether @@ -289,7 +289,7 @@ function install_gettogether { exit 3568356 fi - $INSTALL_PACKAGES python3 python3-pip + $INSTALL_PACKAGES python3 python3-pip python3-virtualenv if [ -d "/var/www/$GETTOGETHER_DOMAIN_NAME/htdocs" ]; then rm -rf "/var/www/$GETTOGETHER_DOMAIN_NAME/htdocs" @@ -313,6 +313,9 @@ function install_gettogether { set_completion_param "gettogether commit" "$GETTOGETHER_COMMIT" virtualenv --python=python3 ./env + if [ ! -d env ]; then + exit 67843643234 + fi ./env/bin/pip install -r requirements.txt ./env/bin/python manage.py migrate ./env/bin/python manage.py createsuperuser @@ -412,7 +415,7 @@ function install_gettogether { echo 'User=gettogether'; echo 'Group=gettogether'; echo 'WorkingDirectory=/etc/gettogether'; - echo "ExecStart=/usr/bin/python3 manage.py runserver 127.0.0.1:$GETTOGETHER_PORT_INTERNAL"; + echo "ExecStart=/etc/gettogether/env/bin/python manage.py runserver 127.0.0.1:$GETTOGETHER_PORT_INTERNAL"; echo 'Environment=USER=gettogether'; echo 'Restart=always'; echo 'StandardError=syslog';