From c002155b0980b405ac8e97632998cf46a50b243d Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 15:13:46 +0100 Subject: [PATCH 1/8] Update install --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index f409486..fadf4d0 100755 --- a/scripts/install +++ b/scripts/install @@ -50,6 +50,7 @@ sudo yunohost app ssowatconf #Installation Wordpress echo '127.0.0.1 $domain #wordpress' | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress +sleep 10 if [ $4 = "n" ]; then sudo yunohost app setting wordpress skipped_uris -d From 225a56a04ce4c423f40e440914145b1132617775 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:15:21 +0100 Subject: [PATCH 2/8] Update install --- scripts/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index fadf4d0..530e920 100755 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,13 @@ sudo yunohost app ssowatconf #Installation Wordpress echo '127.0.0.1 $domain #wordpress' | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress -sleep 10 +check_sql=$(mysql -p wordpress -e "select * from wp_options;" > /dev/null 2>&1) +while [ $check_sql != 0 ]; +do + sleep 5 + check_sql=$(mysql -p wordpress -e "select * from wp_options;" > /dev/null 2>&1) +done + if [ $4 = "n" ]; then sudo yunohost app setting wordpress skipped_uris -d From 9b22467df8986bd8f848781f99b8706bd467f103 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:16:07 +0100 Subject: [PATCH 3/8] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 530e920..3c6aa74 100755 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,7 @@ check_sql=$(mysql -p wordpress -e "select * from wp_options;" > /dev/null 2>&1) while [ $check_sql != 0 ]; do sleep 5 - check_sql=$(mysql -p wordpress -e "select * from wp_options;" > /dev/null 2>&1) + check_sql=$(mysql -p $db_user -e "select * from wp_options;" > /dev/null 2>&1) done if [ $4 = "n" ]; From cef6aa0bf10afe329de1bc90587d181ac8f5cc91 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:19:43 +0100 Subject: [PATCH 4/8] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 3c6aa74..5e95bf7 100755 --- a/scripts/install +++ b/scripts/install @@ -50,11 +50,11 @@ sudo yunohost app ssowatconf #Installation Wordpress echo '127.0.0.1 $domain #wordpress' | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress -check_sql=$(mysql -p wordpress -e "select * from wp_options;" > /dev/null 2>&1) +check_sql=$(mysql -u $db_user -p$db_pwd wordpress -e "select * from wp_options;" > /dev/null 2>&1) while [ $check_sql != 0 ]; do sleep 5 - check_sql=$(mysql -p $db_user -e "select * from wp_options;" > /dev/null 2>&1) + check_sql=$(mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1) done if [ $4 = "n" ]; From 6750c911dad95a01b480bcede80ee71924789b82 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:20:14 +0100 Subject: [PATCH 5/8] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 5e95bf7..b134caa 100755 --- a/scripts/install +++ b/scripts/install @@ -50,7 +50,7 @@ sudo yunohost app ssowatconf #Installation Wordpress echo '127.0.0.1 $domain #wordpress' | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress -check_sql=$(mysql -u $db_user -p$db_pwd wordpress -e "select * from wp_options;" > /dev/null 2>&1) +check_sql=$(mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1) while [ $check_sql != 0 ]; do sleep 5 From 2258d38c4ed3f4657065a4b5824b5b1017e2dd77 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:20:57 +0100 Subject: [PATCH 6/8] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b134caa..f68cb62 100755 --- a/scripts/install +++ b/scripts/install @@ -48,7 +48,7 @@ sudo yunohost app setting wordpress skipped_uris -v "/" sudo yunohost app ssowatconf #Installation Wordpress -echo '127.0.0.1 $domain #wordpress' | sudo tee -a /etc/hosts +echo "127.0.0.1 $domain #wordpress" | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress check_sql=$(mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1) while [ $check_sql != 0 ]; From 3bd112c01875db9903a8a28deeae668b38800d83 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:27:46 +0100 Subject: [PATCH 7/8] Update install --- scripts/install | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install b/scripts/install index f68cb62..151a61c 100755 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,6 @@ sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/wordpress.conf -#Installation Wordpress # Reload Nginx and regenerate SSOwat conf sudo service nginx reload sudo yunohost app setting wordpress skipped_uris -v "/" From 4d8037880cec7001af15c937b0f59ffc16fb3dcd Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 6 Dec 2013 19:29:53 +0100 Subject: [PATCH 8/8] Update install --- scripts/install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 151a61c..1ba3116 100755 --- a/scripts/install +++ b/scripts/install @@ -49,11 +49,13 @@ sudo yunohost app ssowatconf #Installation Wordpress echo "127.0.0.1 $domain #wordpress" | sudo tee -a /etc/hosts 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=Yunohost&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=Yunohost&user_name=admin&admin_password=$admin_passwd&admin_password2=$admin_passwd&admin_email=admin@$domain&Submit=Install+WordPress -check_sql=$(mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1) -while [ $check_sql != 0 ]; +mysql -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1 +RESULT=$? +while [ $RESULT != 0 ]; do sleep 5 - check_sql=$(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 + RESULT=$? done if [ $4 = "n" ];