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:
parent
7ae644a4ac
commit
c833bf151e
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue