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:
parent
c9af2d0dc7
commit
fd00882e7c
2 changed files with 8 additions and 1 deletions
|
@ -118,6 +118,9 @@ done
|
|||
# Set admin user
|
||||
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
|
||||
#=================================================
|
||||
|
|
|
@ -47,6 +47,7 @@ if [ -z "$db_name" ] ; then
|
|||
db_name=$app
|
||||
ynh_app_setting_set "$app" db_name "$db_name"
|
||||
fi
|
||||
db_user="$db_name"
|
||||
|
||||
#=================================================
|
||||
# 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"
|
||||
cp ../conf/parameters.yml "$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 "{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}" 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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue