style: refine dyndns.sh and vars.example comments and formatting
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
# - Validate database connectivity before command execution
|
# - Validate database connectivity before command execution
|
||||||
# - POSIX-compatible operation for cron and service integration
|
# - POSIX-compatible operation for cron and service integration
|
||||||
|
|
||||||
# Authors: Stephan Düsterhaupt
|
# Authors: Stephan Düsterhaupt, Ivo Noack aka Insonic
|
||||||
# Copyright (c) 2018-2026 CB-601 - the open tec Elevator
|
# Copyright (c) 2018-2026 CB-601 - the open tec Elevator
|
||||||
# License: MIT
|
# License: MIT
|
||||||
|
|
||||||
@@ -398,7 +398,7 @@ set_var() {
|
|||||||
|
|
||||||
|
|
||||||
# SDuesterhaupt: 2026-06-18 - Write a message to the dynDNS log file.
|
# SDuesterhaupt: 2026-06-18 - Write a message to the dynDNS log file.
|
||||||
|
#
|
||||||
# Severity levels:
|
# Severity levels:
|
||||||
# 0 -> OFF
|
# 0 -> OFF
|
||||||
# 1 -> DEBUG
|
# 1 -> DEBUG
|
||||||
@@ -406,7 +406,7 @@ set_var() {
|
|||||||
# 3 -> WARNING
|
# 3 -> WARNING
|
||||||
# 4 -> ERROR
|
# 4 -> ERROR
|
||||||
# 5 -> CRITICAL
|
# 5 -> CRITICAL
|
||||||
|
#
|
||||||
# @param1: Log message.
|
# @param1: Log message.
|
||||||
# @param2: Severity level.
|
# @param2: Severity level.
|
||||||
_log() {
|
_log() {
|
||||||
@@ -444,7 +444,7 @@ _log() {
|
|||||||
|
|
||||||
|
|
||||||
# SDuesterhaupt: 2026-06-18 - Check whether DYNDNS_MEMBER_HOSTNAME is a valid hostname
|
# SDuesterhaupt: 2026-06-18 - Check whether DYNDNS_MEMBER_HOSTNAME is a valid hostname
|
||||||
|
#
|
||||||
# Returns:
|
# Returns:
|
||||||
# 0 if valid
|
# 0 if valid
|
||||||
# 1 if invalid
|
# 1 if invalid
|
||||||
|
|||||||
+2
-2
@@ -69,7 +69,7 @@
|
|||||||
# Database login credentials.
|
# Database login credentials.
|
||||||
# These are mainly used when DYNDNS_SQL_GROUP is unset/empty.
|
# These are mainly used when DYNDNS_SQL_GROUP is unset/empty.
|
||||||
#set_var DYNDNS_SQL_USER "dyndns_user"
|
#set_var DYNDNS_SQL_USER "dyndns_user"
|
||||||
#set_var DYNDNS_SQL_PASS "strong_passphrase"
|
#set_var DYNDNS_SQL_PASS "<REPLACE_WITH_STRONG_PASSWORD>"
|
||||||
|
|
||||||
# Additional database client options, if needed.
|
# Additional database client options, if needed.
|
||||||
# Example:
|
# Example:
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
#set_var DYNDNS_MEMBER_EMAIL "admin@example24.com"
|
#set_var DYNDNS_MEMBER_EMAIL "admin@example24.com"
|
||||||
|
|
||||||
# Password or shared secret used during member creation/authentication
|
# Password or shared secret used during member creation/authentication
|
||||||
#set_var DYNDNS_MEMBER_PASS "strong_passphrase"
|
#set_var DYNDNS_MEMBER_PASS "<REPLACE_WITH_STRONG_PASSWORD>"
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# OPTIONAL COMMAND HOOKS
|
# OPTIONAL COMMAND HOOKS
|
||||||
|
|||||||
Reference in New Issue
Block a user