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:
parent
4eccd20d32
commit
6914578c8b
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue