1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00

Fix url 2 (#46)

* fix

* Update change_url

* Update upgrade

* Update change_url

* Add timezone
This commit is contained in:
Éric Gaspar 2022-01-29 12:07:56 +01:00 committed by GitHub
parent a4d380986f
commit eb27a4ef6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -24,7 +24,7 @@ APP_LANG=__LANGUAGE__
APP_AUTO_LANG_PUBLIC=true APP_AUTO_LANG_PUBLIC=true
# Application timezone # Application timezone
APP_TIMEZONE=UTC APP_TIMEZONE=__TIMEZONE__
# Database details # Database details
DB_HOST=localhost DB_HOST=localhost

View file

@ -104,11 +104,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%/}"
pushd $final_path pushd $final_path
yes | php$phpversion artisan bookstack:update-url $app_url_domain https://${new_domain}${new_path%/} yes | php$phpversion artisan bookstack:update-url $app_url_domain $new_app_url_domain
popd popd
sed -i "/APP_URL=/c\APP_URL=https://${new_domain}${new_path}" $final_path/.env sed -i "/APP_URL=/c\APP_URL=$new_app_url_domain" $final_path/.env
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -25,6 +25,7 @@ path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE language=$YNH_APP_ARG_LANGUAGE
phpversion=$YNH_PHP_VERSION phpversion=$YNH_PHP_VERSION
timezone="$(cat /etc/timezone)"
redis_db=$(ynh_redis_get_free_db) redis_db=$(ynh_redis_get_free_db)
mail_pwd=$(ynh_string_random --length=12) mail_pwd=$(ynh_string_random --length=12)