mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Remove all holds on Ubuntu reinstall
This commit is contained in:
@@ -2037,7 +2037,7 @@ reinstall_init() {
|
|||||||
|
|
||||||
if command -v docker &> /dev/null; then
|
if command -v docker &> /dev/null; then
|
||||||
# Stop and remove all so-* containers so files can be changed with more safety
|
# Stop and remove all so-* containers so files can be changed with more safety
|
||||||
if [ $(docker ps -a -q --filter "name=so-" | wc -l) -gt 0 ]; then
|
if [[ $(docker ps -a -q --filter "name=so-" | wc -l) -gt 0 ]]; then
|
||||||
docker stop $(docker ps -a -q --filter "name=so-")
|
docker stop $(docker ps -a -q --filter "name=so-")
|
||||||
docker rm -f $(docker ps -a -q --filter "name=so-")
|
docker rm -f $(docker ps -a -q --filter "name=so-")
|
||||||
fi
|
fi
|
||||||
@@ -2056,6 +2056,10 @@ reinstall_init() {
|
|||||||
# Remove the old launcher package in case the config changes
|
# Remove the old launcher package in case the config changes
|
||||||
remove_package launcher-final
|
remove_package launcher-final
|
||||||
|
|
||||||
|
if [[ $OS == 'ubuntu' ]]; then
|
||||||
|
apt-mark unhold $(apt-mark showhold)
|
||||||
|
fi
|
||||||
|
|
||||||
} >> "$setup_log" 2>&1
|
} >> "$setup_log" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user