mirror of
https://github.com/YunoHost-Apps/scrumblr_ynh.git
synced 2024-09-03 20:16:29 +02:00
Update install
This commit is contained in:
parent
1f169ec927
commit
3d4bbb9683
1 changed files with 16 additions and 5 deletions
|
@ -1,9 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source ./_common
|
source ./_common
|
||||||
source ./.fonctions
|
source .fonctions
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
|
@ -14,12 +21,16 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
script_dir=$PWD
|
||||||
|
|
||||||
ynh_normalize_url_path $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 domain/path availability
|
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
||||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine.
|
||||||
|| ynh_die "Path not available: ${domain}${path}"
|
|
||||||
|
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
|
# Install dependency to convert tracks to a readable format for the browser
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
Loading…
Add table
Reference in a new issue