Browse Source

„APP/ui/synOCR-start.sh“ ändern

master
Stephan Geisler 4 months ago
parent
commit
ad0241b081
  1. 2
      APP/ui/synOCR-start.sh

2
APP/ui/synOCR-start.sh

@ -101,7 +101,7 @@
if [[ $(sqlite3 ./etc/synOCR.sqlite "SELECT value_1 FROM system WHERE key='checkmon'") -ne $(date +%m) ]]; then
sqlite3 "./etc/synOCR.sqlite" "UPDATE system SET value_1='$(date +%m)' WHERE key='checkmon'"
if [[ $(sqlite3 ./etc/synOCR.sqlite "SELECT value_1 FROM system WHERE key='checkmon'") -eq $(date +%m) ]]; then
server_info=$(wget --no-check-certificate --timeout=60 --tries=1 -q -O - "https://geimist.eu/synOCR/updateserver.php?file=VERSION_DSM${dsm_version}&version=$(get_key_value /var/packages/synOCR/INFO version)&arch=$machinetyp" )
server_info=$(wget --no-check-certificate --timeout=20 --tries=3 -q -O - "https://geimist.eu/synOCR/updateserver.php?file=VERSION_DSM${dsm_version}&version=$(get_key_value /var/packages/synOCR/INFO version)&arch=$machinetyp" )
sqlite3 "./etc/synOCR.sqlite" "UPDATE system SET value_1='$(echo "$server_info" | sed -n "2p")' WHERE key='online_version'"
if [[ $(echo "$server_info" | sed -n "1p" ) != "ok" ]]; then
sqlite3 "./etc/synOCR.sqlite" "UPDATE system SET value_1='$(date -d "-1 month" +%m)' WHERE key='checkmon'"

Loading…
Cancel
Save