Skip to content

Commit 17fbb24

Browse files
Update install.sh
1 parent c0f0f06 commit 17fbb24

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

install/install.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ sudo ufw default allow outgoing
1212
sudo ufw allow ssh
1313
sudo ufw --force enable
1414

15-
sudo rm -r /opt/Gooby
16-
sudo git clone -b master https://github.com/TechPerplexed/Gooby /opt/Gooby
15+
sudo rm -r /opt/.Gooby > /dev/null 2>&1
16+
sudo git clone -b master https://github.com/TechPerplexed/Gooby /opt/.Gooby
1717

18-
sudo chmod +x -R /opt/Gooby/install
19-
sudo chmod +x -R /opt/Gooby/menus
20-
sudo chmod +x -R /opt/Gooby/scripts/bin
21-
sudo chmod +x -R /opt/Gooby/scripts/cron
22-
sudo rsync -a /opt/Gooby/scripts/bin/gooby /bin
23-
sudo chmod 755 /bin/gooby
18+
if [ -d /opt/.Gooby ]; then
19+
sudo rm -r /opt/Gooby
20+
sudo mv /opt/.Gooby /opt/Gooby
21+
sudo chmod +x -R /opt/Gooby/install
22+
sudo chmod +x -R /opt/Gooby/menus
23+
sudo chmod +x -R /opt/Gooby/scripts/bin
24+
sudo chmod +x -R /opt/Gooby/scripts/cron
25+
sudo rsync -a /opt/Gooby/scripts/bin/gooby /bin
26+
sudo chmod 755 /bin/gooby
27+
fi
2428

2529
source /opt/Gooby/menus/variables.sh
2630

0 commit comments

Comments
 (0)