From c4171f34c05d2b7f899c72f9f0b957f4f7b7e02e Mon Sep 17 00:00:00 2001 From: Edmund Tan Date: Wed, 23 Jul 2025 02:12:12 +0800 Subject: [PATCH] revert last good3 --- UI/includes/enrollment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/includes/enrollment.php b/UI/includes/enrollment.php index 22b12b6..291b6c8 100644 --- a/UI/includes/enrollment.php +++ b/UI/includes/enrollment.php @@ -404,6 +404,11 @@ EOF; } unlink($tempFile); + // Set proper permissions on service file + if (!executeCommand("chmod 644 " . SYSTEMD_SERVICE_FILE)) { + throw new Exception('Failed to set permissions on systemd service file'); + } + // Reload systemd and enable service if (!executeCommand('systemctl daemon-reload')) { throw new Exception('Failed to reload systemd');