This commit is contained in:
Alexey Berezhok
2026-07-19 01:18:52 +03:00
parent 49812505b2
commit e85d945984
4 changed files with 118 additions and 3 deletions

View File

@@ -44,6 +44,11 @@ def BuildModule():
if result.returncode != 0:
# Extract error message from stderr (already captured in stdout due to redirect)
return f'Build utility failed with exit code {result.returncode}'
installed_cfg_path = '/usr/local/ispmanager-mod_rewrite/settings/installed.cfg'
with open(installed_cfg_path, 'w') as cfg_file:
cfg_file.write('')
os.chmod(installed_cfg_path, 0o600)
except Exception as exc:
log_path_error = os.path.join(os.path.dirname(log_path), 'error.log')
with open(log_path_error, 'a') as error_file: