mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Use new findport fonction
This commit is contained in:
parent
2b4ce18691
commit
3035e1d53c
1 changed files with 1 additions and 10 deletions
|
@ -41,7 +41,7 @@ set_configuration() {
|
||||||
|
|
||||||
get_source() {
|
get_source() {
|
||||||
if [[ $1 == 'arm' ]]
|
if [[ $1 == 'arm' ]]
|
||||||
then
|
theng
|
||||||
wget -q -O '/tmp/seafile_src.tar.gz' 'https://github.com/haiwen/seafile-rpi/releases/download/v'$2'/seafile-server_'$2'_stable_pi.tar.gz'
|
wget -q -O '/tmp/seafile_src.tar.gz' 'https://github.com/haiwen/seafile-rpi/releases/download/v'$2'/seafile-server_'$2'_stable_pi.tar.gz'
|
||||||
md5sum=$armsum
|
md5sum=$armsum
|
||||||
elif [[ $1 == 'x86-64' ]]
|
elif [[ $1 == 'x86-64' ]]
|
||||||
|
@ -74,15 +74,6 @@ 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