1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

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
#===================================================
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