Update upgrade
This commit is contained in:
parent
3a66eca3c3
commit
9242c501e6
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting wordpress domain)
|
domain=$(sudo yunohost app setting searx domain)
|
||||||
path=$(sudo yunohost app setting wordpress path)
|
path=$(sudo yunohost app setting searx path)
|
||||||
|
is_public=$(sudo yunohost app setting searx is_public)
|
||||||
|
|
||||||
|
|
||||||
# Check depends installation
|
# Check depends installation
|
||||||
|
@ -41,6 +42,20 @@ then
|
||||||
sudo rm -f /tmp/myswapfile
|
sudo rm -f /tmp/myswapfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
|
sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||||
|
if [ $path != "/" ];
|
||||||
|
then
|
||||||
|
sudo cp ../conf/nginx.conf-noroot /etc/nginx/conf.d/$domain.d/searx.conf
|
||||||
|
else
|
||||||
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/searx.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $is_public = "No" ];
|
||||||
|
then
|
||||||
|
sudo sed -i 's/#include conf/include conf/' /etc/nginx/conf.d/$domain.d/searx.conf
|
||||||
|
fi
|
||||||
|
|
||||||
## Reload Nginx and regenerate SSOwat conf
|
## Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo service uwsgi restart
|
sudo service uwsgi restart
|
||||||
|
|
Loading…
Reference in New Issue