|
|
@ -67,7 +67,8 @@ sudo yunohost app setting wordpress skipped_uris -v "/" |
|
|
sudo yunohost app ssowatconf |
|
|
sudo yunohost app ssowatconf |
|
|
|
|
|
|
|
|
# Wordpress installation |
|
|
# Wordpress installation |
|
|
echo "127.0.0.1 $domain #wordpress" | sudo tee -a /etc/hosts |
|
|
|
|
|
|
|
|
echo "127.0.0.1 $domain #yunowordpress" | sudo tee -a /etc/hosts |
|
|
|
|
|
sleep 1 |
|
|
curl -X POST -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:12.0) Gecko/20100101 Firefox/12.0" -e "http://$domain$path/wp-admin/install.php?step=2" -H "Content-Type:application/x-www-form-urlencoded" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Accept-Encoding:gzip, deflate" --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&weblog_title=YunoBlog&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress |
|
|
curl -X POST -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:12.0) Gecko/20100101 Firefox/12.0" -e "http://$domain$path/wp-admin/install.php?step=2" -H "Content-Type:application/x-www-form-urlencoded" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Accept-Encoding:gzip, deflate" --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&weblog_title=YunoBlog&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress |
|
|
sleep 5 |
|
|
sleep 5 |
|
|
mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1 |
|
|
mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1 |
|
|
@ -89,4 +90,4 @@ then |
|
|
else |
|
|
else |
|
|
mysql -u $db_user -p$db_pwd $db_user < ../conf/public.sql |
|
|
mysql -u $db_user -p$db_pwd $db_user < ../conf/public.sql |
|
|
fi |
|
|
fi |
|
|
sudo sed -i '/wordpress/d' /etc/hosts |
|
|
|
|
|
|
|
|
sudo sed -i '/yunowordpress/d' /etc/hosts |