mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Correction du path
Corrige le path si il est mal écrit. Pour passer le test de Package check.
This commit is contained in:
parent
fa25e50052
commit
cff866da27
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@ dbuser=$app
|
|||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Comments of this code was deleted, because it were in french...
|
||||
if [ "${path:0:1}" != "/" ] && [ ${#path} -gt 0 ]; then
|
||||
path="/$path"
|
||||
fi
|
||||
if [ "${path:${#path}-1}" == "/" ] && [ ${#path} -gt 1 ]; then
|
||||
path="${path:0:${#path}-1}"
|
||||
fi
|
||||
|
||||
# TODO: Check domain/path availability with app helper
|
||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||
|| ynh_die "The path ${domain}${path} is not available for app installation."
|
||||
|
|
Loading…
Add table
Reference in a new issue