style: ruff format webinstaller/app.py
All checks were successful
Build ISO / build-iso (push) Successful in 20m45s
CI / lint (push) Successful in 27s
CI / test (push) Successful in 32s
CI / validate-json (push) Successful in 23s
CI / markdown-links (push) Successful in 13s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Maksymilian Syrnicki 2026-04-15 08:46:58 +02:00
parent 8c56c036cb
commit 3909ee781b

View file

@ -428,9 +428,7 @@ def _post_install_commands(hostname):
)
# Pin the chosen hostname into the static HTML at install-time so the
# landing page doesn't need a server-side template.
hostname_sed = (
f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html"
)
hostname_sed = f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html"
return [
_write_file_cmd("/etc/caddy/Caddyfile", _CADDYFILE),
_write_file_cmd("/srv/furtka/www/index.html", _INDEX_HTML),
@ -438,15 +436,9 @@ def _post_install_commands(hostname):
_write_file_cmd("/srv/furtka/www/status.json", _STATUS_JSON_PLACEHOLDER),
_write_file_cmd("/usr/local/bin/furtka-status", _FURTKA_STATUS_SH, mode="755"),
_write_file_cmd("/usr/local/bin/furtka-welcome", _FURTKA_WELCOME_SH, mode="755"),
_write_file_cmd(
"/etc/systemd/system/furtka-status.service", _FURTKA_STATUS_SERVICE
),
_write_file_cmd(
"/etc/systemd/system/furtka-status.timer", _FURTKA_STATUS_TIMER
),
_write_file_cmd(
"/etc/systemd/system/furtka-welcome.service", _FURTKA_WELCOME_SERVICE
),
_write_file_cmd("/etc/systemd/system/furtka-status.service", _FURTKA_STATUS_SERVICE),
_write_file_cmd("/etc/systemd/system/furtka-status.timer", _FURTKA_STATUS_TIMER),
_write_file_cmd("/etc/systemd/system/furtka-welcome.service", _FURTKA_WELCOME_SERVICE),
nss_sed,
hostname_sed,
# archinstall calls `systemctl enable` on `services` *before*