mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Ignoring exit signals on mysql loop
This commit is contained in:
parent
27fecc14f7
commit
a9d9b4ddb0
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ echo "127.0.0.1 $domain #wordpress_yunohost" | sudo tee -a /etc/hosts
|
||||||
curl -kL --data "&weblog_title=YunoBlog&user_name=$admin_wordpress&admin_password=$db_pwd&admin_password2=$db_pwd&admin_email=$admin_wordpress@$domain&language=$language&Submit=Install+WordPress" https://$domain$path/wp-admin/install.php?step=2 > /dev/null 2>&1
|
curl -kL --data "&weblog_title=YunoBlog&user_name=$admin_wordpress&admin_password=$db_pwd&admin_password2=$db_pwd&admin_email=$admin_wordpress@$domain&language=$language&Submit=Install+WordPress" https://$domain$path/wp-admin/install.php?step=2 > /dev/null 2>&1
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
|
trap '' ERR # Ignoring exit signals
|
||||||
mysql --debug-check -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1
|
mysql --debug-check -u $db_user -p$db_pwd $db_user -e "select * from wp_options;" > /dev/null 2>&1
|
||||||
result=$?
|
result=$?
|
||||||
loop_number=1
|
loop_number=1
|
||||||
|
@ -115,6 +116,7 @@ do
|
||||||
let result=$?
|
let result=$?
|
||||||
let loop_number++
|
let loop_number++
|
||||||
done
|
done
|
||||||
|
TRAP_ON
|
||||||
|
|
||||||
# Replace variables in sql scripts
|
# Replace variables in sql scripts
|
||||||
sudo sed -i "s@__DOMAIN_PATH__@$domain$path@g" ../conf/sql/*.sql
|
sudo sed -i "s@__DOMAIN_PATH__@$domain$path@g" ../conf/sql/*.sql
|
||||||
|
|
Loading…
Add table
Reference in a new issue