revert last good3

This commit is contained in:
Edmund Tan 2025-07-23 02:12:12 +08:00
parent 7d9efacf47
commit c4171f34c0
1 changed files with 5 additions and 0 deletions

View File

@ -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');