Tweaked psql command in upgrade

This commit is contained in:
anmol26s 2018-08-03 06:33:01 +05:30
parent 7ae644a4ac
commit c833bf151e

View file

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