mirror of
https://github.com/YunoHost-Apps/grist_ynh.git
synced 2024-09-03 20:36:18 +02:00
Add GRIST_DEFAULT_EMAIL for setting admin email
This commit is contained in:
parent
6fdfe6850a
commit
1c014c40a3
4 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ REDIS_URL=redis://localhost:6379/__REDIS_DB__
|
|||
GRIST_DATA_DIR=__DATA_DIR__/docs/
|
||||
TYPEORM_DATABASE=__DATA_DIR__/home.db
|
||||
PORT=__PORT__
|
||||
GRIST_DEFAULT_EMAIL=__ADMIN_EMAIL__
|
||||
|
||||
# Authentication
|
||||
GRIST_FORWARD_AUTH_HEADER=Email
|
||||
|
|
|
@ -32,6 +32,7 @@ ynh_script_progression --message="Updating env configuration file..." --weight=1
|
|||
|
||||
domain="$new_domain"
|
||||
path="$new_path"
|
||||
admin_email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -71,6 +71,7 @@ ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
admin_email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
|
||||
ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@ ynh_use_logrotate --non-append
|
|||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||
|
||||
admin_email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
|
||||
|
||||
chmod 400 "$install_dir/default.env"
|
||||
|
|
Loading…
Add table
Reference in a new issue