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

Fix unsupported path _common and change_url

This commit is contained in:
Josué Tille 2023-12-19 08:47:31 +01:00
parent 43b69c2c35
commit 8846be1a7c
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 3 additions and 1 deletions

View file

@ -149,7 +149,7 @@ install_source() {
if $install_on_root; then if $install_on_root; then
mv "$install_dir"/webapps/xwiki "$install_dir"/webapps/root mv "$install_dir"/webapps/xwiki "$install_dir"/webapps/root
elif [ "$path" != /root ]; then elif [ "$path" == /root ]; then
ynh_die --message='Path "/root" not supported' ynh_die --message='Path "/root" not supported'
elif [ "$path" != /xwiki ]; then elif [ "$path" != /xwiki ]; then
mv "$install_dir"/webapps/xwiki "$install_dir"/webapps$path mv "$install_dir"/webapps/xwiki "$install_dir"/webapps$path

View file

@ -30,6 +30,8 @@ ynh_script_progression --message="Updating xwiki configuration..." --weight=1
if [ $new_path != $old_path ]; then if [ $new_path != $old_path ]; then
if $install_on_root; then if $install_on_root; then
mv "$install_dir"/webapps$old_path "$install_dir"/webapps/root mv "$install_dir"/webapps$old_path "$install_dir"/webapps/root
elif [ "$path" == /root ]; then
ynh_die --message='Path "/root" not supported'
elif [ $old_path == / ]; then elif [ $old_path == / ]; then
mv "$install_dir"/webapps/root "$install_dir"/webapps$new_path mv "$install_dir"/webapps/root "$install_dir"/webapps$new_path
else else