1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jappix_ynh.git synced 2024-09-03 19:26:19 +02:00

Update install

This commit is contained in:
frju365 2017-03-05 20:49:48 +01:00 committed by GitHub
parent 0f799c50ac
commit 2255220724

View file

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
set -e set -e
source .fonctions
source ./_common source ./_common
ynh_check_error # Active trap pour arrêter le script si une erreur est détectée.
app="jappix" app="jappix"
# Retrieve arguments # Retrieve arguments
@ -13,8 +15,9 @@ name=$3
language=$4 language=$4
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl "${domain}${path}" -a "$app" \ CHECK_DOMAINPATH
|| exit 1 path=$(ynh_normalize_url_path $path) # Vérifie et corrige la syntaxe du path.
CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé.
# Retrieve sources # Retrieve sources
wget -q -O jappix.tar.gz "$JAPPIX_SOURCE_URL" wget -q -O jappix.tar.gz "$JAPPIX_SOURCE_URL"