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:
parent
a99dd0c1af
commit
11caf9791c
4 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
set -eu
|
||||
|
||||
. /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
set -eu
|
||||
|
||||
. /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ set -eu
|
|||
|
||||
. /usr/share/yunohost/helpers
|
||||
. _common
|
||||
ynh_abort_if_errors
|
||||
|
||||
# Retrieve arguments
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
|
Loading…
Add table
Reference in a new issue