mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Fix install/upgrade
This commit is contained in:
parent
9c57acbb89
commit
ed63e5ab5d
2 changed files with 4 additions and 1 deletions
|
@ -115,6 +115,8 @@ EOF
|
|||
#=================================================
|
||||
ynh_script_progression --message="Install weblate using PIP..." --time --weight=1
|
||||
|
||||
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
|
||||
|
||||
virtualenv --python=python3 "${final_path}/venv"
|
||||
chown -R "$app": "$final_path"
|
||||
|
||||
|
|
|
@ -240,9 +240,10 @@ else
|
|||
current_version=3
|
||||
fi
|
||||
|
||||
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
|
||||
|
||||
if [ "$current_version" -lt "4" ];
|
||||
then
|
||||
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
|
||||
upgrade "4.1.1" "../conf/settings.4.1.1.py"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue