mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Setup Script - Add cleanup of install dir
This commit is contained in:
@@ -237,12 +237,20 @@ got_root() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_cleanup() {
|
||||||
|
|
||||||
|
# Clean up after ourselves
|
||||||
|
rm -rf ./installtmp
|
||||||
|
|
||||||
|
}
|
||||||
install_prep() {
|
install_prep() {
|
||||||
|
|
||||||
# Create a tmp space that isn't in /tmp
|
# Create a tmp space that isn't in /tmp
|
||||||
mkdir ./installtmp
|
mkdir ./installtmp
|
||||||
TMP=./installtmp
|
TMP=./installtmp
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_master() {
|
install_master() {
|
||||||
|
|
||||||
# Install the salt master package
|
# Install the salt master package
|
||||||
@@ -480,6 +488,7 @@ whiptail_bond_nics_mtu() {
|
|||||||
whiptail_cancel() {
|
whiptail_cancel() {
|
||||||
|
|
||||||
whiptail --title "Security Onion Setup" --msgbox "Cancelling Setup. No changes have been made." 8 78
|
whiptail --title "Security Onion Setup" --msgbox "Cancelling Setup. No changes have been made." 8 78
|
||||||
|
install_cleanup
|
||||||
exit
|
exit
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user