Browse Source

Move the github ribbon

Bob Mottram 8 years ago
parent
commit
25f49664f7
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-app-searx

+ 7
- 0
src/freedombone-app-searx View File

@@ -60,6 +60,10 @@ function searx_set_default_background {
60 60
             chown -R searx:searx ${SEARX_PATH}/searx
61 61
         fi
62 62
     fi
63
+
64
+    if [ -f /etc/searx/searx/static/themes/courgette/img/github_ribbon.png ]; then
65
+        mv /etc/searx/searx/static/themes/courgette/img/github_ribbon.png /etc/searx/searx/static/themes/courgette/img/github_ribbon.png.old
66
+    fi
63 67
 }
64 68
 
65 69
 function searx_set_background_image_from_url {
@@ -739,6 +743,9 @@ function upgrade_searx {
739 743
         cp ${settings_file}.prev ${settings_file}
740 744
         chown -R searx:searx ${SEARX_PATH}/searx
741 745
     fi
746
+    if [ -f /etc/searx/searx/static/themes/courgette/img/github_ribbon.png ]; then
747
+        mv /etc/searx/searx/static/themes/courgette/img/github_ribbon.png /etc/searx/searx/static/themes/courgette/img/github_ribbon.png.old
748
+    fi
742 749
 }
743 750
 
744 751
 function backup_local_searx {