Fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user