1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Set Wallabag URL in internal settings

This commit is contained in:
Jimmy Monin 2017-04-28 17:42:00 +02:00
parent c9af2d0dc7
commit fd00882e7c
2 changed files with 8 additions and 1 deletions

View file

@ -118,6 +118,9 @@ done
# Set admin user # Set admin user
exec_console $app "$final_path" fos:user:promote --super "$admin" exec_console $app "$final_path" fos:user:promote --super "$admin"
# Configure Wallabag instance URL
ynh_mysql_connect_as "$db_name" "$dbpass" "$db_user" <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================

View file

@ -47,6 +47,7 @@ if [ -z "$db_name" ] ; then
db_name=$app db_name=$app
ynh_app_setting_set "$app" db_name "$db_name" ynh_app_setting_set "$app" db_name "$db_name"
fi fi
db_user="$db_name"
#================================================= #=================================================
# MANAGE SCRIPT FAILURE # MANAGE SCRIPT FAILURE
@ -86,7 +87,7 @@ ynh_system_user_create $app # Create dedicated user if not existing
wb_conf="${TMPDIR}/app/config/parameters.yml" wb_conf="${TMPDIR}/app/config/parameters.yml"
cp ../conf/parameters.yml "$wb_conf" cp ../conf/parameters.yml "$wb_conf"
ynh_replace_string "{DBNAME}" "${db_name}" "$wb_conf" ynh_replace_string "{DBNAME}" "${db_name}" "$wb_conf"
ynh_replace_string "{DBUSER}" "${db_name}" "$wb_conf" ynh_replace_string "{DBUSER}" "${db_user}" "$wb_conf"
ynh_replace_string "{DBPASS}" "${dbpass}" "$wb_conf" ynh_replace_string "{DBPASS}" "${dbpass}" "$wb_conf"
ynh_replace_string "{DESKEY}" "${deskey}" "$wb_conf" ynh_replace_string "{DESKEY}" "${deskey}" "$wb_conf"
@ -100,6 +101,9 @@ sudo chmod 755 $final_path
exec_console $app "${final_path}" doctrine:migrations:migrate exec_console $app "${final_path}" doctrine:migrations:migrate
exec_console $app "${final_path}" cache:clear exec_console $app "${final_path}" cache:clear
# Configure Wallabag instance URL
ynh_mysql_connect_as "$db_name" "$dbpass" "$db_user" <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================