Добавлены настройки темы по умолчанию
This commit is contained in:
@@ -6,6 +6,7 @@ BANNER_BRAND="${BANNER_BRAND:-iQR}"
|
||||
BANNER_SLOGAN="${BANNER_SLOGAN:-— qr-код без излишеств}"
|
||||
BANNER_URL="${BANNER_URL:-https://github.com/IliaMiheev/iQR}"
|
||||
ACCENT_COLOR="${ACCENT_COLOR:-#ff4500}"
|
||||
DEFAULT_THEME="${DEFAULT_THEME:-dark}"
|
||||
|
||||
cat > /usr/share/nginx/html/config.json <<EOF
|
||||
{
|
||||
@@ -13,7 +14,8 @@ cat > /usr/share/nginx/html/config.json <<EOF
|
||||
"bannerBrand": "$(printf '%s' "$BANNER_BRAND" | sed 's/"/\\"/g')",
|
||||
"bannerSlogan": "$(printf '%s' "$BANNER_SLOGAN" | sed 's/"/\\"/g')",
|
||||
"bannerUrl": "$(printf '%s' "$BANNER_URL" | sed 's/"/\\"/g')",
|
||||
"accentColor": "$(printf '%s' "$ACCENT_COLOR" | sed 's/"/\\"/g')"
|
||||
"accentColor": "$(printf '%s' "$ACCENT_COLOR" | sed 's/"/\\"/g')",
|
||||
"defaultTheme": "$(printf '%s' "$DEFAULT_THEME" | sed 's/"/\\"/g')"
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user