1
0
Fork 0
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:
Kay0u 2020-10-28 20:22:25 +01:00
parent 9c57acbb89
commit ed63e5ab5d
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 4 additions and 1 deletions

View file

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

View file

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