searx permissions

This commit is contained in:
Bob Mottram 2017-04-16 15:09:08 +01:00
parent 48d3fd0e3c
commit 0e3be0dcee
1 changed files with 2 additions and 0 deletions

View File

@ -51,9 +51,11 @@ searx_variables=(SEARX_REPO
function searx_set_default_background {
if [ -f ~/freedombone/img/backgrounds/searx.jpg ]; then
cp ~/freedombone/img/backgrounds/searx.jpg /etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg
chown -R searx:searx ${SEARX_PATH}/searx
else
if [ -f /home/$MY_USERNAME/freedombone/img/backgrounds/searx.jpg ]; then
cp /home/$MY_USERNAME/freedombone/img/backgrounds/searx.jpg /etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg
chown -R searx:searx ${SEARX_PATH}/searx
fi
fi
}