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:
parent
bd0d7a2a8f
commit
ee269003bb
1 changed files with 11 additions and 2 deletions
|
@ -8,9 +8,18 @@ path=$2
|
|||
is_public=$3
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue