mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[refactor][wip] Also backup directories in /nsm
This commit is contained in:
@@ -1442,8 +1442,11 @@ reinstall_init() {
|
||||
mv /opt/so "/opt/so_old_${date_string}"
|
||||
fi
|
||||
|
||||
# Remove container data directories
|
||||
rm -rf /nsm/mysql
|
||||
# Backup /nsm for the same reason
|
||||
while IFS= read -r -d '' dir; do
|
||||
mv "$dir" "${dir}_old_${date_string}"
|
||||
done < <(find /nsm -maxdepth 1 -mindepth 1 -type d -print0)
|
||||
|
||||
|
||||
# Remove the old launcher package in case the config changes
|
||||
if [ $OS = 'centos' ]; then
|
||||
|
||||
Reference in New Issue
Block a user