mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Chat - Added logic to detect if the callsign has changed since the configuration for chattervox was first generated
This commit is contained in:
@@ -109,6 +109,17 @@ cat <<EOF > "${CHATTERVOX_CONF_FILE}"
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
else
|
||||
et-log "Chattervox configuration already exists, checking for change in et-user..."
|
||||
|
||||
CUR_CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign)
|
||||
CONFIGURED_CALLSIGN=$(cat ${CHATTERVOX_CONF_FILE} | jq -r .callsign)
|
||||
|
||||
if [ "${CUR_CALLSIGN}" != "${CONFIGURED_CALLSIGN}" ]; then
|
||||
et-log "User callsign has changed from ${CUR_CALLSIGN} to ${CONFIGURED_CALLSIGN}"
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user