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 10:30:41 +01:00
parent 033eaa52dd
commit c32a81028d

View file

@ -59,6 +59,7 @@ sudo chown -R www-data: $final_path
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx*.conf sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx*.conf
sed -i "s@ALIASTOCHANGE@$final_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
# Reload Nginx and regenerate SSOwat conf # Reload Nginx and regenerate SSOwat conf
sudo service nginx reload sudo service nginx reload
@ -89,6 +90,7 @@ 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
sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/wordpress.conf sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/wordpress.conf
sudo service nginx reload
fi fi
sudo sed -i '/yunowordpress/d' /etc/hosts sudo sed -i '/yunowordpress/d' /etc/hosts