diff --git a/librephotos.sh b/librephotos.sh index 0ddd960..881f5e1 100644 --- a/librephotos.sh +++ b/librephotos.sh @@ -48,12 +48,6 @@ cat << 'EOF' > /usr/local/bin/librephotos-backend #! /bin/bash cd /usr/src/librephotos/ export PYTHONUNBUFFERED=TRUE -mkdir -p /logs - -#! /bin/bash -cd /usr/src/librephotos/ -export PYTHONUNBUFFERED=TRUE -mkdir -p /logs export PYTHONUNBUFFERED=TRUE export BACKEND_HOST=localhost export DB_BACKEND=postgresql @@ -79,6 +73,10 @@ export DEBUG=0 export BASE_DATA=/var/lib/librephotos/ export BASE_LOGS=/var/log/librephotos/ +mkdir -p $BASE_LOGS +mkdir -p $BASE_DATA/data_models/ +mkdir -p $BASE_DATA/data/nextcloud_media +mkdir -p $BASE_DATA/protected_media/ python3 image_similarity/main.py 2>&1 | tee $BASE_LOGS/gunicorn_image_similarity.log & python3 manage.py showmigrations | tee $BASE_LOGS/show_migrate.log python3 manage.py migrate | tee $BASE_LOGS/command_migrate.log