mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[fix] Only move error log if present
This commit is contained in:
@@ -63,7 +63,7 @@ if [[ -f /root/accept_changes ]]; then
|
||||
|
||||
# Move last setup log to backup
|
||||
mv "$setup_log" "$setup_log.bak"
|
||||
mv "$error_log" "$error_log.bak"
|
||||
[ -f "$error_log" ] && mv "$error_log" "$error_log.bak"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user