From 16f1ed36ef1677430dfab4ff4936c24b19dca401 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 1 Mar 2021 02:01:04 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'librephotos.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- librephotos.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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