1
0
Fork 0
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:
abeudin 2013-12-10 08:39:35 +01:00
parent eafe1fa997
commit ad30dc693a

View file

@ -3,7 +3,7 @@
# Retrieve arguments
domain=$1
path=$2
admin_passwd=$3
admin_wordpress=$3
language=$4
is_public=$5
@ -69,7 +69,7 @@ sudo yunohost app ssowatconf
# Wordpress installation
echo "127.0.0.1 $domain #yunowordpress" | sudo tee -a /etc/hosts
sleep 1
curl -kL -X POST --data "?step=2&weblog_title=YunoBlog&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress" http://$domain$path/wp-admin/install.php?step=2 > /dev/null 2>&1
curl -kL -X POST --data "?step=2&weblog_title=YunoBlog&user_name=$admin_wordpress&admin_password=$db_pwd&admin_password2=$db_pwd&admin_email=$admin_wordpress@$domain&Submit=Install+WordPress" http://$domain$path/wp-admin/install.php?step=2 > /dev/null 2>&1
sleep 5
mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1
result=$?