1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xwiki_ynh.git synced 2024-09-03 20:36:11 +02:00

fix change url

This commit is contained in:
Josué Tille 2023-12-18 23:04:48 +01:00
parent a37a824bd7
commit 43b69c2c35
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -26,6 +26,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
ynh_change_url_nginx_config
ynh_script_progression --message="Updating xwiki configuration..." --weight=1
if [ $new_path != $old_path ]; then
if $install_on_root; then
mv "$install_dir"/webapps$old_path "$install_dir"/webapps/root
elif [ $old_path == / ]; then
mv "$install_dir"/webapps/root "$install_dir"/webapps$new_path
else
mv "$install_dir"/webapps$old_path "$install_dir"/webapps$new_path
fi
fi
add_config
set_permissions