diff --git a/src/main.bash b/src/main.bash index e987507..c3a5b69 100755 --- a/src/main.bash +++ b/src/main.bash @@ -19,11 +19,11 @@ PGKNAME='openssh-server' runVoid dpkg-query --status $PGKNAME if [ $? -ne 0 ] ; then set -e - pkexec apt install $PGKNAME - pkexec /opt/debian-bash/tools/append_or_replace "^#\?PermitRootLogin.*$" "PermitRootLogin no" /etc/ssh/sshd_config - pkexec /opt/debian-bash/tools/append_or_replace "^#\?PasswordAuthentication.*$" "PasswordAuthentication no" /etc/ssh/sshd_config - pkexec /opt/debian-bash/tools/append_or_replace "^#\?AllowUsers.*$" "AllowUsers $ALLOWED_USERS" /etc/ssh/sshd_config - pkexec systemctl restart sshd + sudo apt install $PGKNAME + sudo /opt/debian-bash/tools/append_or_replace "^#\?PermitRootLogin.*$" "PermitRootLogin no" /etc/ssh/sshd_config + sudo /opt/debian-bash/tools/append_or_replace "^#\?PasswordAuthentication.*$" "PasswordAuthentication no" /etc/ssh/sshd_config + sudo /opt/debian-bash/tools/append_or_replace "^#\?AllowUsers.*$" "AllowUsers $ALLOWED_USERS" /etc/ssh/sshd_config + sudo systemctl restart sshd set +e else echo "${PGKNAME} already installed!" @@ -34,10 +34,10 @@ if [[ ! /usr/local/bin/firefox -ef /opt/firefox/firefox ]];then set -e cd /tmp wget `curl 'https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US' | cut -d '"' -f2` -O firefox-latest.tar.bz2 - pkexec mkdir /opt/firefox -p - pkexec chown $USER /opt/firefox + sudo mkdir /opt/firefox -p + sudo chown $USER /opt/firefox tar -xjf firefox-latest.tar.bz2 -C /opt - cat <