mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
use helper
This commit is contained in:
parent
6f7548434f
commit
26b85642e0
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ admin_user=$3
|
||||||
|
|
||||||
# Check user parameter if not empty
|
# Check user parameter if not empty
|
||||||
if [[ $admin_user != '' ]]; then
|
if [[ $admin_user != '' ]]; then
|
||||||
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\""
|
ynh_user_exists $admin_user
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo "Wrong user"
|
echo "Wrong user"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue