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:
parent
688bedd8e1
commit
cf185ac0f5
2 changed files with 4 additions and 4 deletions
|
@ -45,8 +45,8 @@ ynh_store_file_checksum --file="$install_dir/coin/settings_local.py"
|
||||||
ln -s $install_dir/$app/static $install_dir/static
|
ln -s $install_dir/$app/static $install_dir/static
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_exec_warn_less $ynh_python manage.py migrate --noinput
|
ynh_exec_warn_less venv/bin/python3 manage.py migrate --noinput
|
||||||
ynh_exec_warn_less $ynh_python manage.py collectstatic --noinput
|
ynh_exec_warn_less venv/bin/python3 manage.py collectstatic --noinput
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Set permissions to directory
|
# Set permissions to directory
|
||||||
|
|
|
@ -62,7 +62,7 @@ chown $app:www-data "$install_dir/gunicorn_config.py"
|
||||||
ynh_script_progression --message="Migrating database..." --weight=1
|
ynh_script_progression --message="Migrating database..." --weight=1
|
||||||
|
|
||||||
pushd "$install_dir"
|
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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -71,7 +71,7 @@ popd
|
||||||
ynh_script_progression --message="Collecting files..." --weight=1
|
ynh_script_progression --message="Collecting files..." --weight=1
|
||||||
|
|
||||||
pushd "$install_dir"
|
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
|
popd
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue