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:07:13 +01:00
parent 4eccd20d32
commit 6914578c8b

View file

@ -57,9 +57,14 @@ sudo sed -i "s@URLWORDPRESS@$domain$path@g" ../conf/*.sql
sudo chown -R www-data: $final_path
# Modify Nginx configuration file and copy it to Nginx conf directory
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
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx*.conf
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx*.conf
if [ $is_public = "No" ];
then
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/wordpress.conf
else
sudo cp ../conf/nginx-public.conf /etc/nginx/conf.d/$domain.d/wordpress.conf
fi
# Reload Nginx and regenerate SSOwat conf
sudo service nginx reload