[fix] Path in upgrade script.
This commit is contained in:
parent
493c8c8074
commit
faf12c7e6f
|
@ -3,6 +3,9 @@ domain=$(sudo yunohost app setting searx domain)
|
|||
path=$(sudo yunohost app setting searx path)
|
||||
is_public=$(sudo yunohost app setting searx is_public)
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path=${path%/}
|
||||
|
||||
# Check depends installation
|
||||
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev -y
|
||||
|
||||
|
@ -32,6 +35,12 @@ then
|
|||
sudo rm -f /tmp/myswapfile
|
||||
fi
|
||||
|
||||
# Remove trailing "/" for next commands if installing on a subpath
|
||||
if [ "$path" != "/" ];
|
||||
then
|
||||
path=${path%/}
|
||||
fi
|
||||
|
||||
#Configuration Searx
|
||||
sudo cp ../conf/settings.yml /opt/searx/searx/
|
||||
sudo sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" /opt/searx/searx/settings.yml
|
||||
|
|
Loading…
Reference in New Issue