[fix] Handle install on sub folder.
This commit is contained in:
parent
44245ac16d
commit
21b5b056d5
|
@ -44,7 +44,12 @@ 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
|
||||
sudo sed -i -e "s@ynhbaseurl@https://$domain$path@g" /opt/searx/searx/settings.yml
|
||||
if [ "$path" != "/" ];
|
||||
then
|
||||
sudo sed -i -e "s@ynhbaseurl@https://$domain$path/@g" /opt/searx/searx/settings.yml
|
||||
else
|
||||
sudo sed -i -e "s@ynhbaseurl@https://$domain$path@g" /opt/searx/searx/settings.yml
|
||||
fi
|
||||
|
||||
# Set permissions to searx directory
|
||||
sudo useradd searx -d /opt/searx
|
||||
|
|
Loading…
Reference in New Issue