mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Remove auto-start regardless of how setup was started
This commit is contained in:
@@ -708,13 +708,16 @@ detect_os() {
|
|||||||
|
|
||||||
disable_auto_start() {
|
disable_auto_start() {
|
||||||
|
|
||||||
# Remove the automated setup script from crontab, if it exists
|
if crontab -l | grep so-setup; then
|
||||||
logCmd "crontab -u $INSTALLUSERNAME -r"
|
# Remove the automated setup script from crontab, if it exists
|
||||||
|
logCmd "crontab -u $INSTALLUSERNAME -r"
|
||||||
# Truncate last line of the bash profile
|
fi
|
||||||
info "Removing auto-run of setup from bash profile"
|
|
||||||
sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile >> "$setup_log" 2>&1
|
|
||||||
|
|
||||||
|
if grep so-setup /home/$INSTALLUSERNAME/.bash_profile; then
|
||||||
|
# Truncate last line of the bash profile
|
||||||
|
info "Removing auto-run of setup from bash profile"
|
||||||
|
sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile >> "$setup_log" 2>&1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_misc_network_features() {
|
disable_misc_network_features() {
|
||||||
|
|||||||
@@ -415,11 +415,11 @@ if [[ "$setup_type" == 'iso' ]]; then
|
|||||||
# Init networking so rest of install works
|
# Init networking so rest of install works
|
||||||
set_hostname_iso
|
set_hostname_iso
|
||||||
set_management_interface
|
set_management_interface
|
||||||
|
|
||||||
#add_admin_user
|
|
||||||
disable_auto_start
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
disable_auto_start
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
set_hostname;
|
set_hostname;
|
||||||
set_version;
|
set_version;
|
||||||
|
|||||||
Reference in New Issue
Block a user