Skip to content
Snippets Groups Projects
Commit 48d3fd0e authored by Bob Mottram's avatar Bob Mottram
Browse files

Setting searx background

parent 79b2dec4
No related branches found
No related tags found
No related merge requests found
img/backgrounds/searx.jpg

49.5 KiB

......@@ -48,6 +48,16 @@ searx_variables=(SEARX_REPO
MY_USERNAME
SYSTEM_TYPE)
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
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
fi
fi
}
function remove_user_friendica {
remove_username="$1"
......@@ -613,7 +623,8 @@ function create_searx_config {
}
function upgrade_searx {
set_repo_commit $SEARX_PATH/searx "Search engine commit" "$SEARX_COMMIT" $SEARX_REPO
set_repo_commit $SEARX_PATH/searx "searx commit" "$SEARX_COMMIT" $SEARX_REPO
searx_set_default_background
}
function backup_local_searx {
......@@ -769,6 +780,8 @@ function install_searx {
create_searx_config
searx_set_default_background
chown -R searx:searx ${SEARX_PATH}/searx
# enable the site
......
......@@ -197,7 +197,7 @@ function install_gnusocial_default_background {
cp ~/freedombone/img/backgrounds/${gnusocial_type}.jpg /var/www/${domain_name}/htdocs/static/bg.jpg
else
if [ -f /home/$MY_USERNAME/freedombone/img/backgrounds/${gnusocial_type}.jpg ]; then
cp /home/$MY_USERNAME/freedombone/img/backgrounds${gnusocial_type}.jpg /var/www/${domain_name}/htdocs/static/bg.jpg
cp /home/$MY_USERNAME/freedombone/img/backgrounds/${gnusocial_type}.jpg /var/www/${domain_name}/htdocs/static/bg.jpg
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment