1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coin_ynh.git synced 2024-09-03 18:16:26 +02:00

ynh_python -> venv/bin/python3

This commit is contained in:
Alexandre Aubin 2023-12-16 16:21:28 +01:00
parent 688bedd8e1
commit cf185ac0f5
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"