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
VERS='2.8.27-03132025'
VERS='2.8.27b-03132025'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -755,17 +755,18 @@ CONFSYNC(){
}
UPDATE_TINYTUYA_SERVER(){
TTS_FLDR=/opt/tinytuya-server
if [ ! -f /opt/raspiBackup.running ] && ([ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]); then
if [ -d ${TTS_FLDR}/devices.json ]; then
docker stop tinytuya-server
rm -Rf ${TTS_FLDR}/devices.json
if [ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]; then
TTS_FLDR=/opt/tinytuya-server
if [ ! -f /opt/raspiBackup.running ] && ([ -f ${NM_TMPFOLDER}/.singleserver.PW2.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO2.primary ]); then
if [ -d ${TTS_FLDR}/devices.json ]; then
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
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
}
DOWNLIST(){