1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
* Update change_url
This commit is contained in:
Éric Gaspar 2022-03-01 10:03:38 +01:00 committed by GitHub
parent c82412ddb8
commit 161f54fc22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -99,14 +99,13 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Reconfiguring congif file.." --weight=1 ynh_script_progression --message="Reconfiguring congif file.." --weight=1
new_app_url_domain="https://${new_domain}${new_path%/}"
old_app_url_domain="https://${old_domain}${old_path%/}" old_app_url_domain="https://${old_domain}${old_path%/}"
pushd $final_path pushd $final_path
yes | php$phpversion artisan bookstack:update-url $old_app_url_domain $new_app_url_domain yes | php$phpversion artisan bookstack:update-url $old_app_url_domain https://${new_domain}${new_path}
popd popd
sed -i "/APP_URL=/c\APP_URL=$new_app_url_domain" $final_path/.env sed -i "/APP_URL=/c\APP_URL=https://${new_domain}${new_path}" $final_path/.env
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -27,6 +27,7 @@ phpversion=$YNH_PHP_VERSION
timezone="$(cat /etc/timezone)" timezone="$(cat /etc/timezone)"
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db) redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
mail_pwd=$(ynh_string_random --length=12) mail_pwd=$(ynh_string_random --length=12)
timezone="$(cat /etc/timezone)"
fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint) fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage) fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage)
@ -125,6 +126,16 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
app_url_domain="https://$domain${path_url%/}"
ynh_add_config --template=../conf/.env.example --destination=$final_path/.env
chmod 600 $final_path/.env
#================================================= #=================================================
# INSTALL LYCHEE WITH COMPOSER # INSTALL LYCHEE WITH COMPOSER
#================================================= #=================================================