This commit is contained in:
2025-03-13 20:45:36 -05:00
parent 8a15a81ce3
commit 5e0acc0896
2 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERS='2.8.27-03132025' VERS='2.8.27b-03132025'
noheader=' update service dailytemp confsync -r -report test ' noheader=' update service dailytemp confsync -r -report test '

View File

@@ -755,17 +755,18 @@ CONFSYNC(){
} }
UPDATE_TINYTUYA_SERVER(){ UPDATE_TINYTUYA_SERVER(){
TTS_FLDR=/opt/tinytuya-server if [ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]; then
if [ ! -f /opt/raspiBackup.running ] && ([ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]); then TTS_FLDR=/opt/tinytuya-server
if [ -d ${TTS_FLDR}/devices.json ]; then if [ ! -f /opt/raspiBackup.running ] && ([ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]); then
docker stop tinytuya-server if [ -d ${TTS_FLDR}/devices.json ]; then
rm -Rf ${TTS_FLDR}/devices.json docker stop tinytuya-server
rm -Rf ${TTS_FLDR}/devices.json
fi
python3 -m tinytuya wizard -y -no-poll -credentials-file ${TTS_FLDR}/tinytuya.json -raw-response-file ${TTS_FLDR}/tuya-raw.json -device-file ${TTS_FLDR}/devices.json
sleep 1s
docker restart tinytuya-server
fi fi
python3 -m tinytuya wizard -y -no-poll -credentials-file ${TTS_FLDR}/tinytuya.json -raw-response-file ${TTS_FLDR}/tuya-raw.json -device-file ${TTS_FLDR}/devices.json
sleep 1s
docker restart tinytuya-server
fi fi
} }
DOWNLIST(){ DOWNLIST(){