mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
commit
b933d1d2cb
1 changed files with 7 additions and 3 deletions
|
@ -7,11 +7,15 @@ admin_wordpress=$3
|
||||||
language=$4
|
language=$4
|
||||||
is_public=$5
|
is_public=$5
|
||||||
|
|
||||||
# Check if admin password is not null
|
# Check if admin exists
|
||||||
if [ "$admin_wordpress" = "" ]; then
|
sudo yunohost user list --json | grep -q "\"username\": \"$admin_wordpress\""
|
||||||
|
if [[ ! $? -eq 0 ]]; then
|
||||||
echo "Wrong admin"
|
echo "Wrong admin"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
sudo yunohost app setting wordpress admin -v $admin_wordpress
|
||||||
|
sudo yunohost app setting wordpress language -v $language
|
||||||
|
sudo yunohost app setting wordpress is_public -v $is_public
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a wordpress
|
sudo yunohost app checkurl $domain$path -a wordpress
|
||||||
|
|
Loading…
Add table
Reference in a new issue