analyst node changes

This commit is contained in:
m0duspwnens
2020-10-02 16:14:15 -04:00
parent 5a5007c07d
commit 6a0f04d24a

View File

@@ -20,10 +20,13 @@ if [ "$(id -u)" -ne 0 ]; then
exit 1 exit 1
fi fi
INSTALL_LOG=/root/so-analyst-install.log
exec 3>&1 1>${INSTALL_LOG} 2>&1
OS=$(grep PRETTY_NAME /etc/os-release | grep 'CentOS Linux 7') OS=$(grep PRETTY_NAME /etc/os-release | grep 'CentOS Linux 7')
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "This is an unsupported OS. Please use CentOS 7 to install the analyst node." echo "This is an unsupported OS. Please use CentOS 7 to install the analyst node."
exit 2 exit 1
fi fi
if [[ "$manufacturer" == "Security Onion Solutions" && "$family" == "Automated" ]]; then if [[ "$manufacturer" == "Security Onion Solutions" && "$family" == "Automated" ]]; then
@@ -68,6 +71,8 @@ CANCURL=$(curl -sI https://securityonionsolutions.com/ | grep "200 OK")
echo "Exiting analyst node installation." echo "Exiting analyst node installation."
exit 0 exit 0
fi fi
else
echo "We were able to curl https://securityonionsolutions.com/."
fi fi
# Install a GUI text editor # Install a GUI text editor
@@ -221,6 +226,7 @@ cp ../../files/analyst/README /;
cp ../../files/analyst/so-wallpaper.jpg /usr/share/backgrounds/; cp ../../files/analyst/so-wallpaper.jpg /usr/share/backgrounds/;
cp ../../files/analyst/so-lockscreen.jpg /usr/share/backgrounds/; cp ../../files/analyst/so-lockscreen.jpg /usr/share/backgrounds/;
cp ../../files/analyst/so-login-logo.svg /usr/share/pixmaps/; cp ../../files/analyst/so-login-logo.svg /usr/share/pixmaps/;
cp ../../files/analyst/so-login-logo-dark.svg /usr/share/pixmaps/;
# Set background wallpaper # Set background wallpaper
cat << EOF >> /etc/dconf/db/local.d/00-background cat << EOF >> /etc/dconf/db/local.d/00-background
@@ -259,7 +265,7 @@ EOF
# Do not show the user list at login screen # Do not show the user list at login screen
cat << EOF >> /etc/dconf/db/local.d/00-login-screen cat << EOF >> /etc/dconf/db/local.d/00-login-screen
[org/gnome/login-screen] [org/gnome/login-screen]
logo='/usr/share/pixmaps/so-login-logo.svg' logo='/usr/share/pixmaps/so-login-logo-dark.svg'
disable-user-list=true disable-user-list=true
EOF EOF