Update linupx-scripts.sh

This commit is contained in:
2020-03-08 21:46:41 -05:00
parent 7ad7342eae
commit e511a12a0f

View File

@@ -351,6 +351,16 @@ FW_INSTALL() {
exit 0;;
esac
}
ENABLE_REMOTESYSLOG(){
read -n 1 -p "Are you sure you wish to enable sending syslogs to ${RemoteSyslogServer} (Y/n)?" choice
case "$choice" in
[Nn]) SCRIPT_MENU;;
* )
echo ""
echo -e "\n\n*.* @${RemoteSyslogServer}:514" >> /etc/rsyslog.d/50-default.conf
exit 0;;
esac
}
SCRIPT_MENU() {
if [ -f ${FOLDER}/lastrun ]; then
@@ -423,6 +433,8 @@ SCRIPT_MENU() {
0) ENDISASU
SCRIPT_MENU;;
[Ii]) INSTALL_MENU;;
[Ll]) ENABLE_REMOTESYSLOG;
SCRIPT_MENU;;
[Rr]) GO_REBOOT
SCRIPT_MENU;;
[Ss]) SHUTDOWN