mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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}"
|
mv /opt/so "/opt/so_old_${date_string}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove container data directories
|
# Backup /nsm for the same reason
|
||||||
rm -rf /nsm/mysql
|
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
|
# Remove the old launcher package in case the config changes
|
||||||
if [ $OS = 'centos' ]; then
|
if [ $OS = 'centos' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user