1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ampache_ynh.git synced 2024-09-03 18:15:55 +02:00

add ynh_abort_if_errors

This commit is contained in:
aymhce 2017-09-11 18:20:19 +00:00
parent a99dd0c1af
commit 11caf9791c
4 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
set -eu
. /usr/share/yunohost/helpers
ynh_abort_if_errors
app=$YNH_APP_INSTANCE_NAME

View file

@ -11,6 +11,7 @@ admin_ampache=$YNH_APP_ARG_ADMIN
# Source helpers
. /usr/share/yunohost/helpers
. _common
ynh_abort_if_errors
# Check if admin exists
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_ampache\"" || ynh_die "wrong admin username"

View file

@ -3,6 +3,7 @@
set -eu
. /usr/share/yunohost/helpers
ynh_abort_if_errors
app=$YNH_APP_INSTANCE_NAME

View file

@ -4,6 +4,7 @@ set -eu
. /usr/share/yunohost/helpers
. _common
ynh_abort_if_errors
# Retrieve arguments
app=$YNH_APP_INSTANCE_NAME