Compare commits

...

2 commits

Author SHA1 Message Date
n8fr8
e85c3b1dc2 systemctl daemon-reload should be inside the module 2026-05-07 13:34:50 -04:00
n8fr8
8fdfd1b8ea if the datetime field isn't there, don't try to set it 2026-05-07 08:42:05 -04:00
2 changed files with 7 additions and 8 deletions

View file

@ -1,7 +1,7 @@
document.addEventListener('DOMContentLoaded', () => {
var currentTime = new Date();
const $myDatetimeField = document.querySelector('#butterbox_date')
const $myDatetimeField = document.querySelector('#butterbox_date');
if (!$myDatetimeField) return;
const currentTime = new Date();
console.log(currentTime.toISOString().substring(0, 19));
$myDatetimeField.value = currentTime.toISOString().substring(0, 19) + 'Z';
});

View file

@ -71,7 +71,6 @@ def run_madmail_installer():
child.sendline("y")
child.expect(pexpect.EOF)
daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True)
if daemon_reload.returncode != 0:
daemon_reload = run(["sudo", "systemctl", "daemon-reload"], capture_output=True, text=True)
if daemon_reload.returncode != 0:
print(f"Issue running systemctl daemon_reload")