mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Update install
This commit is contained in:
parent
0c462bb40a
commit
d6bd4ecbd3
1 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,9 @@ admin_wordpress=$3
|
|||
language=$4
|
||||
is_public=$5
|
||||
|
||||
# Check if admin password is not null
|
||||
if [ "$admin_wordpress" = "" ]; then
|
||||
# Check if admin exists
|
||||
sudo yunohost user list --json | grep -q '"username": "$admin_wordpress"'
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Wrong admin"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue