From bcb8acc3644e25507721afcf5b13ec3fa0e7e47d Mon Sep 17 00:00:00 2001 From: bunkerity Date: Wed, 23 Jun 2021 12:16:31 +0200 Subject: [PATCH] linux - add RX permissions to /opt --- helpers/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/helpers/install.sh b/helpers/install.sh index 965b4cc..1a16546 100644 --- a/helpers/install.sh +++ b/helpers/install.sh @@ -83,13 +83,14 @@ if [ "$OS" = "debian" ] || [ "$OS" = "ubuntu" ] ; then fi echo "[*] Install dependencies" if [ "$OS" = "debian" ] || [ "$OS" = "ubuntu" ] ; then - DEBIAN_DEPS="git cron curl" + DEBIAN_DEPS="git cron curl python3 python3-pip" DEBIAN_FRONTEND=noninteractive do_and_check_cmd apt install -y $DEBIAN_DEPS elif [ "$OS" = "centos" ] ; then do_and_check_cmd yum install -y epel-release - CENTOS_DEPS="git crontabs curl" + CENTOS_DEPS="git crontabs curl python3 python3-pip" do_and_check_cmd yum install -y $CENTOS_DEPS fi +do_and_check_cmd pip3 install jinja2 # Clone the repo echo "[*] Clone bunkerity/bunkerized-nginx" @@ -209,6 +210,9 @@ do_and_check_cmd chmod 750 /opt/bunkerized-nginx/gen/main.py do_and_check_cmd chown root:root /usr/local/bin/bunkerized-nginx do_and_check_cmd chmod 750 /usr/local/bin/bunkerized-nginx +# Set permissions for /opt +do_and_check_cmd chmod u+rx /opt + # Install cron echo "[*] Add jobs to crontab" if [ "$OS" = "debian" ] || [ "$OS" = "ubuntu" ] ; then