This commit is contained in:
2025-05-26 21:04:42 -05:00
parent b9b6a3c561
commit 6347d3be6c
2 changed files with 10 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
PW_VERS='2.9.2-05262025'
PW_VERS='2.9.3-05262025'
noheader=' update service dailytemp confsync -r -report test '
@@ -36,14 +36,9 @@ M_SRVCOPT=(start stop restart reload enable disable)
source ${PW_FOLDER}/conf/settings.conf
if [[ "${IP}" != "10.6.1."* ]]; then
mqtt_conn="/usr/bin/mosquitto_sub -h ${PW_IP} -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}"
mysql_conn="/usr/bin/mariadb -h 127.0.0.1 -P 3308 --user=${PW_MYSQL_USER} --password=${PW_MYSQL_PASS}"
# else
# mqtt_conn="/usr/bin/mosquitto_sub -h 127.0.0.1 -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}"
# mysql_conn='/usr/bin/mariadb'
fi
[ "${PW_MYSQL_HOST}" != "" ] && mysql_conn="/usr/bin/mariadb -h ${PW_MYSQL_HOST} -P 3308 --user=${PW_MYSQL_USER} --password=${PW_MYSQL_PASS}"
[ "${PW_MQTT_HOST}" != "" ] && mqtt_conn="/usr/bin/mosquitto_sub -h ${PW_MQTT_HOST} -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}"
EMAIL_NOTICE=${PW_EMAIL_NOTICE}
PUSHOVER_APP_TOKEN=${PW_PUSHOVER_APP_TOKEN}
PUSHOVER_USER_TOKEN=${PW_PUSHOVER_USER_TOKEN}