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:
parent
071f248797
commit
c6975e7afd
1 changed files with 13 additions and 5 deletions
|
@ -102,13 +102,21 @@ fi
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
path_url="$new_path"
|
# path_url="$new_path"
|
||||||
domain="$new_domain"
|
# domain="$new_domain"
|
||||||
mail_pwd=$(ynh_string_random --length=12)
|
# mail_pwd=$(ynh_string_random --length=12)
|
||||||
|
|
||||||
ynh_add_config --template=../conf/.env.example --destination=$final_path/.env
|
# ynh_add_config --template=../conf/.env.example --destination=$final_path/.env
|
||||||
|
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
|
|
||||||
|
ynh_script_progression --message="Reconfiguring congif file.." --weight=1
|
||||||
|
|
||||||
|
sed "s/a APP_URL=.*/a https://${new_domain}${new_path}" $final_path/.env
|
||||||
|
|
||||||
|
pushd $final_path
|
||||||
|
php$phpversion artisan bookstack:update-url https://${domain}${path_url} https://${new_domain}${new_path}
|
||||||
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Reference in a new issue