mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
fix key and unaccent extension
This commit is contained in:
parent
c20f4452e8
commit
610cca6f3a
3 changed files with 5 additions and 3 deletions
|
@ -70,7 +70,7 @@ DJANGO_ALLOWED_HOSTS=__DOMAIN__
|
||||||
DJANGO_SETTINGS_MODULE=config.settings.production
|
DJANGO_SETTINGS_MODULE=config.settings.production
|
||||||
|
|
||||||
# Generate one using `openssl rand -base64 45`, for example
|
# Generate one using `openssl rand -base64 45`, for example
|
||||||
DJANGO_SECRET_KEY="__KEY__"
|
DJANGO_SECRET_KEY=__KEY__
|
||||||
|
|
||||||
# You don't have to edit this, but you can put the admin on another URL if you
|
# You don't have to edit this, but you can put the admin on another URL if you
|
||||||
# want to
|
# want to
|
||||||
|
|
|
@ -79,6 +79,8 @@ ynh_psql_create_db "$db_name" "$app" "$db_user_pwd"
|
||||||
ynh_app_setting_set "$app" db_name "$db_name"
|
ynh_app_setting_set "$app" db_name "$db_name"
|
||||||
ynh_app_setting_set "$app" psqlpwd "$db_user_pwd"
|
ynh_app_setting_set "$app" psqlpwd "$db_user_pwd"
|
||||||
|
|
||||||
|
ynh_psql_execute_as_root "CREATE EXTENSION IF NOT EXISTS unaccent;"
|
||||||
|
|
||||||
systemctl reload postgresql
|
systemctl reload postgresql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -145,7 +147,7 @@ configfile="$final_path/config/.env"
|
||||||
|
|
||||||
cp ../conf/env.prod "$configfile"
|
cp ../conf/env.prod "$configfile"
|
||||||
|
|
||||||
key=$(ynh_string_random 50)
|
key=$(ynh_string_random)
|
||||||
|
|
||||||
ynh_app_setting_set "$app" key "$key"
|
ynh_app_setting_set "$app" key "$key"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
ynh_die "!"
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -45,6 +44,7 @@ ynh_remove_app_dependencies
|
||||||
|
|
||||||
# Remove a database if it exists, along with the associated user
|
# Remove a database if it exists, along with the associated user
|
||||||
ynh_psql_remove_db "$db_name" "$app"
|
ynh_psql_remove_db "$db_name" "$app"
|
||||||
|
ynh_psql_execute_as_root "DROP EXTENSION IF EXISTS unaccent;"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue