Explorar el Código

[changepaper] Push wallpaper to Searx

Colin Powell hace 4 años
padre
commit
4c0fec3cec
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      bin/.bin/changepaper

+ 2 - 5
bin/.bin/changepaper

@@ -40,11 +40,8 @@ if test -f "$SLIM_BG_FILE"; then
 fi
 
 SEARX_BG_FILE=/usr/local/lib/python2.7/site-packages/searx/static/themes/courgette/img/bg-body-index.jpg
-if test -f "$SEARX_BG_FILE"; then
-	echo "Setting Searx background image"
-	rm $SEARX_BG_FILE
-	cp $SEARX_BASEDIR$date.jpg $SEARX_BG_FILE
-fi
+echo "Setting Searx background image"
+scp $BASEDIR/$date.jpg search.local:$SEARX_BG_FILE
 
 # Then grab our APOD image and store it for now
 #Change directory to where the script resides.