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:
parent
43b69c2c35
commit
8846be1a7c
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue