mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
[enh] Do not mess with /etc/hosts
This commit is contained in:
parent
61a05709b0
commit
621b9b6479
1 changed files with 1 additions and 4 deletions
|
@ -72,9 +72,7 @@ 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 #yunowordpress" | sudo tee -a /etc/hosts
|
curl -kL -H "Host: $domain" -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&language=$language&Submit=Install+WordPress" http://127.0.0.1$path/wp-admin/install.php?step=2 > /dev/null 2>&1
|
||||||
sleep 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&language=$language&Submit=Install+WordPress" http://$domain$path/wp-admin/install.php?step=2 > /dev/null 2>&1
|
|
||||||
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
|
||||||
result=$?
|
result=$?
|
||||||
|
@ -98,4 +96,3 @@ else
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo sed -i "s@//define('FORCE_SSL_ADMIN@define('FORCE_SSL_ADMIN@g" $final_path/wp-config.php
|
sudo sed -i "s@//define('FORCE_SSL_ADMIN@define('FORCE_SSL_ADMIN@g" $final_path/wp-config.php
|
||||||
fi
|
fi
|
||||||
sudo sed -i '/yunowordpress/d' /etc/hosts
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue