style: ruff format webinstaller/app.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8c56c036cb
commit
3909ee781b
1 changed files with 4 additions and 12 deletions
|
|
@ -428,9 +428,7 @@ def _post_install_commands(hostname):
|
||||||
)
|
)
|
||||||
# Pin the chosen hostname into the static HTML at install-time so the
|
# Pin the chosen hostname into the static HTML at install-time so the
|
||||||
# landing page doesn't need a server-side template.
|
# landing page doesn't need a server-side template.
|
||||||
hostname_sed = (
|
hostname_sed = f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html"
|
||||||
f"sed -i 's/__HOSTNAME__/{hostname}/g' /srv/furtka/www/index.html"
|
|
||||||
)
|
|
||||||
return [
|
return [
|
||||||
_write_file_cmd("/etc/caddy/Caddyfile", _CADDYFILE),
|
_write_file_cmd("/etc/caddy/Caddyfile", _CADDYFILE),
|
||||||
_write_file_cmd("/srv/furtka/www/index.html", _INDEX_HTML),
|
_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("/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-status", _FURTKA_STATUS_SH, mode="755"),
|
||||||
_write_file_cmd("/usr/local/bin/furtka-welcome", _FURTKA_WELCOME_SH, mode="755"),
|
_write_file_cmd("/usr/local/bin/furtka-welcome", _FURTKA_WELCOME_SH, mode="755"),
|
||||||
_write_file_cmd(
|
_write_file_cmd("/etc/systemd/system/furtka-status.service", _FURTKA_STATUS_SERVICE),
|
||||||
"/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.timer", _FURTKA_STATUS_TIMER
|
|
||||||
),
|
|
||||||
_write_file_cmd(
|
|
||||||
"/etc/systemd/system/furtka-welcome.service", _FURTKA_WELCOME_SERVICE
|
|
||||||
),
|
|
||||||
nss_sed,
|
nss_sed,
|
||||||
hostname_sed,
|
hostname_sed,
|
||||||
# archinstall calls `systemctl enable` on `services` *before*
|
# archinstall calls `systemctl enable` on `services` *before*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue