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
7d1cad5f6f
commit
433d1459fd
1 changed files with 4 additions and 4 deletions
|
@ -8,14 +8,14 @@ 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';"
|
||||
admin_wordpress = $(cat /tmp/wordpressuser)
|
||||
admin_wordpress="$(cat /tmp/wordpressuser)"
|
||||
rm /tmp/wordpressuser
|
||||
fi
|
||||
|
||||
language=$(sudo yunohost app setting wordpress language)
|
||||
if [ $language = '' ];
|
||||
then
|
||||
grep WPLANG /var/www/wordpress/wp-config.php | cut -d"'" -f4
|
||||
language="$(grep WPLANG /var/www/wordpress/wp-config.php | cut -d"'" -f4)"
|
||||
fi
|
||||
|
||||
is_public=$(sudo yunohost app setting wordpress is_public)
|
||||
|
|
Loading…
Add table
Reference in a new issue