Tweaked psql command in upgrade

This commit is contained in:
anmol26s 2018-08-03 06:33:01 +05:30
parent 7ae644a4ac
commit c833bf151e
1 changed files with 2 additions and 4 deletions

View File

@ -58,10 +58,8 @@ systemctl stop "$app"
# Add PostgreSQL extension for v1.0.0-beta.10.pre.1
#===================================================
ynh_psql_execute_as_root \
"CREATE EXTENSION IF NOT EXISTS unaccent;" "$db_name"
ynh_psql_execute_as_root \
"CREATE EXTENSION IF NOT EXISTS pg_trgm;" "$db_name"
sudo --login --user=postgres psql "$db_name" "CREATE EXTENSION IF NOT EXISTS unaccent;"
sudo --login --user=postgres psql "$db_name" "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
#=================================================
# REMOVE APP MAIN DIR