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() { cleanup() {
echo -e "\n ✅ Cleaning up..." 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 if [[ -n "${BRIDGE_PID:-}" ]] && ps -p ${BRIDGE_PID} > "${STDOUT}" 2> "${STDERR}"; then
kill ${BRIDGE_PID} kill ${BRIDGE_PID}
@@ -733,6 +733,8 @@ securely on a hidden sheet of paper or add it to your password manager (locally
# --- DEFAULT VARIABLES ---> # --- DEFAULT VARIABLES --->
INSTALL_DIR="/run/user/$(id -u)/numbus-installer"
WEBSERVER_PORT=${WEBSERVER_PORT:-8088} WEBSERVER_PORT=${WEBSERVER_PORT:-8088}
LIVE_DATA_FILE="web/config/live.yaml" LIVE_DATA_FILE="web/config/live.yaml"
@@ -751,8 +753,8 @@ if [[ ${DEBUG-0} -eq 1 ]]; then
DIR_RM_FLAGS="rvf" DIR_RM_FLAGS="rvf"
MKDIR_FLAGS="pv" MKDIR_FLAGS="pv"
MV_FLAGS="vu" MV_FLAGS="vu"
STDOUT="std.log" STDOUT="${INSTALL_DIR}/logs/std.log"
STDERR="err.log" STDERR="${INSTALL_DIR}/logs/err.log"
else else
DEBUG=0 DEBUG=0
FILES_CP_FLAGS="au" FILES_CP_FLAGS="au"
+1 -6
View File
@@ -77,12 +77,7 @@
const response = await fetch('/discovery', { const response = await fetch('/discovery', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'text/yaml' }, headers: { 'Content-Type': 'text/yaml' },
body: jsyaml.dump(payload, { body: jsyaml.dump(payload, { quotingType: '"', forceQuotes: true })
quotingType: '"',
styles: {
'!!str': 'double'
}
})
}); });
if (response.ok) { if (response.ok) {