mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Update install
This commit is contained in:
parent
ceeffbfa6b
commit
994c6458e0
1 changed files with 15 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ./_common
|
||||
source ./.fonctions
|
||||
source .fonctions
|
||||
set -eu
|
||||
|
||||
# Retrieve arguments
|
||||
|
@ -14,13 +14,23 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
CLEAN_SETUP () {
|
||||
# Nettoyage des résidus d'installation non pris en charge par le script remove.
|
||||
# Pas de nettoyage supplémentaire nécessaire ici...
|
||||
echo ""
|
||||
}
|
||||
TRAP_ON # Active trap pour arrêter le script si une erreur est détectée.
|
||||
|
||||
ynh_normalize_url_path $path
|
||||
script_dir=$PWD
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||
|| ynh_die "Path not available: ${domain}${path}"
|
||||
# Vérifie que les variables ne sont pas vides.
|
||||
CHECK_VAR "$app" "app name not set"
|
||||
CHECK_VAR "$script_dir" "script_dir not set"
|
||||
|
||||
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
||||
CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine.
|
||||
|
||||
CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé.
|
||||
|
||||
# Install dependency to convert tracks to a readable format for the browser
|
||||
sudo apt-get update
|
||||
|
|
Loading…
Add table
Reference in a new issue