From 28b0cf8dcfbd8471edfc5d918cf46a6f963384ca Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Sun, 26 Nov 2023 02:15:59 +0200 Subject: [PATCH] Update install.sh --- installers/Ubuntu/22.04/install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installers/Ubuntu/22.04/install.sh b/installers/Ubuntu/22.04/install.sh index 60082d3..de77ea2 100644 --- a/installers/Ubuntu/22.04/install.sh +++ b/installers/Ubuntu/22.04/install.sh @@ -5,8 +5,8 @@ apt-get update && apt-get install ca-certificates apt install -y git cd / -mkdir -p /phyre/raw-repo -git clone https://github.com/CloudVisionApps/PhyrePanel.git /phyre/raw-repo +mkdir -p $MAIN_DIR +git clone https://github.com/CloudVisionApps/PhyrePanel.git $MAIN_DIR HELPERS_DIR=$MAIN_DIR"/shell/helpers/ubuntu" . $HELPERS_DIR"/common.sh" @@ -25,13 +25,10 @@ email="admin@phyrepanel.com" echo phyreweb:$random_password | sudo chpasswd -e mkdir -p /etc/sudoers.d -cp -f ./sudo/phyreweb /etc/sudoers.d/ +cp -f $MAIN_DIR/installers/Ubuntu/22.04/sudo/phyreweb /etc/sudoers.d/ chmod 440 /etc/sudoers.d/phyreweb - -exit - # Update the system apt update -y