mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Update upgrade
This commit is contained in:
parent
d8f2edf283
commit
f6bc4134f6
1 changed files with 12 additions and 0 deletions
|
@ -4,8 +4,20 @@
|
||||||
domain=$(sudo yunohost app setting wordpress domain)
|
domain=$(sudo yunohost app setting wordpress domain)
|
||||||
path=$(sudo yunohost app setting wordpress path)
|
path=$(sudo yunohost app setting wordpress path)
|
||||||
admin_wordpress=$(sudo yunohost app setting wordpress admin)
|
admin_wordpress=$(sudo yunohost app setting wordpress admin)
|
||||||
|
if [ $admin_wordpress = '' ];
|
||||||
|
then
|
||||||
|
mysql -u root -p$root_pwd $db_name -e "select MAX(user_login) from wp_users where user_status=0 INTO OUTFILE '/tmp/wordpressuser';"
|
||||||
|
fi
|
||||||
language=$(sudo yunohost app setting wordpress language)
|
language=$(sudo yunohost app setting wordpress language)
|
||||||
|
if [ $language = '' ];
|
||||||
|
then
|
||||||
|
grep WPLANG /var/www/wordpress/wp-config.php | cut -d"'" -f4
|
||||||
|
fi
|
||||||
is_public=$(sudo yunohost app setting wordpress is_public)
|
is_public=$(sudo yunohost app setting wordpress is_public)
|
||||||
|
if [ is_public = '' ];
|
||||||
|
then
|
||||||
|
mysql -u root -p$root_pwd $db_name -e "select * from wp_options where option_name='http_authentication_options'";
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if admin is not null
|
# Check if admin is not null
|
||||||
if [[ "$admin_wordpress" = "" || "$is_public" = "" || "$language" = "" ]]; then
|
if [[ "$admin_wordpress" = "" || "$is_public" = "" || "$language" = "" ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue