mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Switch back to direct command for removing setup from bash_profile due to how sed is interpreting the quoted expression
This commit is contained in:
@@ -714,7 +714,8 @@ disable_auto_start() {
|
|||||||
logCmd "crontab -u $INSTALLUSERNAME -r"
|
logCmd "crontab -u $INSTALLUSERNAME -r"
|
||||||
|
|
||||||
# Truncate last line of the bash profile
|
# Truncate last line of the bash profile
|
||||||
logCmd "sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile"
|
info "Removing auto-run of setup from bash profile"
|
||||||
|
sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile >> "$setup_log" 2>&1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user