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

Correction of trailing / bug while installing on root

This commit is contained in:
polytan02 2015-08-10 00:04:46 +01:00
parent bd0d7a2a8f
commit ee269003bb

View file

@ -8,9 +8,18 @@ path=$2
is_public=$3 is_public=$3
# Removal of trailing / # Removal of trailing /
path=${path%/} if [ $path = "/" ]
then
#sitename="root"
echo "Installation on the root of the domain"
else
# sitename == path without any "/"
#sitename=$(echo $path | cut -d '/' -f 2)
# Removal of trailing /
# path can be null but not really an issue for the remaining commands
path=${path%/}
fi
#sudo yunohost app setting rainloop domain -v $domain
# Check domain/path availability # Check domain/path availability