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

master
Stephan 1 week ago
parent 416282112f
commit 96d1ff6f80
  1. 4
      APP/ui/synOCR-start.sh

@ -194,7 +194,7 @@ fi
fi fi
# monthly check for updates: # monthly check for updates:
if [[ $(sqlite3 ./etc/synOCR.sqlite "SELECT value_1 FROM system WHERE key='checkmon'") -ne $(date +%m) ]]; then if [[ $(sqlite3 ./etc/synOCR.sqlite "SELECT value_1 FROM system WHERE key='checkmon'") != $(date +%m) ]]; then
local_version=$(grep "^version" /var/packages/synOCR/INFO | cut -d '"' -f2) local_version=$(grep "^version" /var/packages/synOCR/INFO | cut -d '"' -f2)
if [ "$(grep "^beta" /var/packages/synOCR/INFO | cut -d '"' -f2)" = yes ]; then if [ "$(grep "^beta" /var/packages/synOCR/INFO | cut -d '"' -f2)" = yes ]; then
release_channel=beta release_channel=beta
@ -202,7 +202,7 @@ fi
release_channel=release release_channel=release
fi fi
sqlite3 "./etc/synOCR.sqlite" "UPDATE system SET value_1='$(date +%m)' WHERE key='checkmon'" 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 if [[ $(sqlite3 ./etc/synOCR.sqlite "SELECT value_1 FROM system WHERE key='checkmon'") = $(date +%m) ]]; then
server_info=$(wget --no-check-certificate --timeout=20 --tries=3 -q -O - "https://geimist.eu/synOCR/updateserver.php?file=VERSION&version=${local_version}&arch=${machinetyp}&dsm=${dsm_version}&device=$(uname -a | awk -F_ '{print $NF}' | sed "s/+/plus/g")" ) server_info=$(wget --no-check-certificate --timeout=20 --tries=3 -q -O - "https://geimist.eu/synOCR/updateserver.php?file=VERSION&version=${local_version}&arch=${machinetyp}&dsm=${dsm_version}&device=$(uname -a | awk -F_ '{print $NF}' | sed "s/+/plus/g")" )
online_version=$(echo "$server_info" | jq -r .dsm.dsm${dsm_version}.${release_channel}.version) online_version=$(echo "$server_info" | jq -r .dsm.dsm${dsm_version}.${release_channel}.version)

Loading…
Cancel
Save