From cf185ac0f5552e0c95a19639c8d54bb78d346ffd Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 16 Dec 2023 16:21:28 +0100 Subject: [PATCH] ynh_python -> venv/bin/python3 --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 68483b9..626f1f1 100644 --- a/scripts/install +++ b/scripts/install @@ -45,8 +45,8 @@ ynh_store_file_checksum --file="$install_dir/coin/settings_local.py" ln -s $install_dir/$app/static $install_dir/static pushd $install_dir - ynh_exec_warn_less $ynh_python manage.py migrate --noinput - ynh_exec_warn_less $ynh_python manage.py collectstatic --noinput + ynh_exec_warn_less venv/bin/python3 manage.py migrate --noinput + ynh_exec_warn_less venv/bin/python3 manage.py collectstatic --noinput popd # Set permissions to directory diff --git a/scripts/upgrade b/scripts/upgrade index 33a1e7d..d5cf032 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,7 +62,7 @@ chown $app:www-data "$install_dir/gunicorn_config.py" ynh_script_progression --message="Migrating database..." --weight=1 pushd "$install_dir" - ynh_exec_warn_less $ynh_python manage.py migrate --noinput + ynh_exec_warn_less venv/bin/python3 manage.py migrate --noinput popd #================================================= @@ -71,7 +71,7 @@ popd ynh_script_progression --message="Collecting files..." --weight=1 pushd "$install_dir" - ynh_exec_warn_less $ynh_python manage.py collectstatic --noinput + ynh_exec_warn_less venv/bin/python3 manage.py collectstatic --noinput popd chmod 750 "$install_dir"