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

Tidying

parent 31f655e9
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,11 @@ function web_admin_background_color {
apps_border_light=cfdde7
apps_border_dark=1f5177
search_background_light=5499ca
search_background_dark=f9f3f3
search_background_light2=fdfdfd
search_background_dark2=144163
# change colors on home screen
sed -i "0,/background-color:.*/s//background-color: ${bg_color};/" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "0,/ color:.*/s// color: ${fg_color};/" "/var/www/${local_hostname}/htdocs/home/index.html"
......@@ -247,18 +252,18 @@ function web_admin_background_color {
# change the search background
if [[ "$bg_color" == 'white' ]]; then
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_light.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|f9f3f3|5499ca|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|f9f3f3|5499ca|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_dark|$search_background_light|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_dark2|$search_background_light2|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_dark|$search_background_light|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_dark2|$search_background_light2|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$apps_border_dark|$apps_border_light|g" "/var/www/${local_hostname}/htdocs/admin/apps.html"
sed -i "s|$apps_border_dark|$apps_border_light|g" "/var/www/${local_hostname}/htdocs/admin/apps_add.html"
else
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_dark.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|5499ca|f9f3f3|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|5499ca|f9f3f3|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_light|$search_background_dark|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_light2|$search_background_dark2|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_light|$search_background_dark|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_light2|$search_background_dark2|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$apps_border_light|$apps_border_dark|g" "/var/www/${local_hostname}/htdocs/admin/apps.html"
sed -i "s|$apps_border_light|$apps_border_dark|g" "/var/www/${local_hostname}/htdocs/admin/apps_add.html"
fi
......
......@@ -59,6 +59,11 @@ function web_admin_background_color {
apps_border_light=cfdde7
apps_border_dark=1f5177
search_background_light=5499ca
search_background_dark=f9f3f3
search_background_light2=fdfdfd
search_background_dark2=144163
# change colors on home screen
sed -i "0,/background-color:.*/s//background-color: ${bg_color};/" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "0,/ color:.*/s// color: ${fg_color};/" "/var/www/${local_hostname}/htdocs/home/index.html"
......@@ -66,18 +71,18 @@ function web_admin_background_color {
# change the search background
if [[ "$bg_color" == 'white' ]]; then
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_light.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|f9f3f3|5499ca|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|f9f3f3|5499ca|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i 's|144163|fdfdfd|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_dark|$search_background_light|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_dark2|$search_background_light2|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_dark|$search_background_light|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_dark2|$search_background_light2|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$apps_border_dark|$apps_border_light|g" "/var/www/${local_hostname}/htdocs/admin/apps.html"
sed -i "s|$apps_border_dark|$apps_border_light|g" "/var/www/${local_hostname}/htdocs/admin/apps_add.html"
else
cp "/root/${PROJECT_NAME}/img/backgrounds/searx_dark.png" "/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg"
sed -i 's|5499ca|f9f3f3|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i 's|5499ca|f9f3f3|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i 's|fdfdfd|144163|g' "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_light|$search_background_dark|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_light2|$search_background_dark2|g" "/var/www/${local_hostname}/htdocs/admin/index.html"
sed -i "s|$search_background_light|$search_background_dark|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$search_background_light2|$search_background_dark2|g" "/var/www/${local_hostname}/htdocs/home/index.html"
sed -i "s|$apps_border_light|$apps_border_dark|g" "/var/www/${local_hostname}/htdocs/admin/apps.html"
sed -i "s|$apps_border_light|$apps_border_dark|g" "/var/www/${local_hostname}/htdocs/admin/apps_add.html"
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