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
set -e
source .fonctions
source ./_common
ynh_check_error # Active trap pour arrêter le script si une erreur est détectée.
app="jappix"
# Retrieve arguments
@ -13,8 +15,9 @@ name=$3
language=$4
# Check domain/path availability
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| exit 1
CHECK_DOMAINPATH
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
wget -q -O jappix.tar.gz "$JAPPIX_SOURCE_URL"