mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
2b4ce18691
1 changed files with 9 additions and 0 deletions
|
@ -74,6 +74,15 @@ CHECK_PATH () { # Vérifie la présence du / en début de path. Et son absence
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FIND_PORT () { # Cherche un port libre.
|
||||||
|
# $1 = Numéro de port pour débuter la recherche.
|
||||||
|
port=$1
|
||||||
|
while ! sudo yunohost app checkport $port ; do
|
||||||
|
port=$((port+1))
|
||||||
|
done
|
||||||
|
CHECK_VAR "$port" "port empty"
|
||||||
|
}
|
||||||
|
|
||||||
######## End of common fonctions
|
######## End of common fonctions
|
||||||
|
|
||||||
# Init script
|
# Init script
|
||||||
|
|
Loading…
Reference in a new issue