Improved debugging features. Added quotes to live.yaml.

This commit is contained in:
Raphaël Numbus
2026-05-25 17:11:59 +02:00
parent f989dd8f3a
commit e3142e3032
2 changed files with 9 additions and 12 deletions
+5 -3
View File
@@ -67,7 +67,7 @@ get_valid_input() {
cleanup() {
echo -e "\n ✅ Cleaning up..."
rm -${DIR_RM_FLAGS} "/run/user/$(id -u)/numbus-installer"
rm -${DIR_RM_FLAGS} "${INSTALL_DIR}"
if [[ -n "${BRIDGE_PID:-}" ]] && ps -p ${BRIDGE_PID} > "${STDOUT}" 2> "${STDERR}"; then
kill ${BRIDGE_PID}
@@ -733,6 +733,8 @@ securely on a hidden sheet of paper or add it to your password manager (locally
# --- DEFAULT VARIABLES --->
INSTALL_DIR="/run/user/$(id -u)/numbus-installer"
WEBSERVER_PORT=${WEBSERVER_PORT:-8088}
LIVE_DATA_FILE="web/config/live.yaml"
@@ -751,8 +753,8 @@ if [[ ${DEBUG-0} -eq 1 ]]; then
DIR_RM_FLAGS="rvf"
MKDIR_FLAGS="pv"
MV_FLAGS="vu"
STDOUT="std.log"
STDERR="err.log"
STDOUT="${INSTALL_DIR}/logs/std.log"
STDERR="${INSTALL_DIR}/logs/err.log"
else
DEBUG=0
FILES_CP_FLAGS="au"
+1 -6
View File
@@ -77,12 +77,7 @@
const response = await fetch('/discovery', {
method: 'POST',
headers: { 'Content-Type': 'text/yaml' },
body: jsyaml.dump(payload, {
quotingType: '"',
styles: {
'!!str': 'double'
}
})
body: jsyaml.dump(payload, { quotingType: '"', forceQuotes: true })
});
if (response.ok) {