Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 1e3ea00

Browse files
authored
Update install-debian10.sh
1 parent b0bdcea commit 1e3ea00

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

install-debian10.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ if [ ! -f "/etc/debian_version" ]; then
1111
exit 1
1212
fi
1313

14+
read -r -p "Install FastGit.org front? [Y/n] " input
15+
16+
case $input in
17+
[yY][eE][sS]|[yY])
18+
echo "You selected install"
19+
;;
20+
21+
[nN][oO]|[nN])
22+
echo "You selected no install"
23+
;;
24+
25+
*)
26+
echo "Invalid input..."
27+
exit 1
28+
;;
29+
esac
30+
1431
echo "[I] Basic operations"
1532
apt update
1633

@@ -42,6 +59,18 @@ mkdir -p /www/wwwlogs
4259
cp robots.txt /www/wwwroot/fg
4360
echo "OK!" > /www/wwwroot/fg/index.html
4461

62+
echo "[I] Process FastGit.org index.html"
63+
case $input in
64+
[yY][eE][sS]|[yY])
65+
git clone "https://github.com/FastGitORG/www" /www/wwwroot/fgorg
66+
rm -rf /www/wwwroot/fgorg/.git
67+
;;
68+
69+
[nN][oO]|[nN])
70+
rm -f /etc/nginx/sites-enabled/fastgit.org.conf
71+
;;
72+
esac
73+
4574
echo "[I] Clean tmp"
4675
cd ..
4776
rm -fR nginx-conf

0 commit comments

Comments
 (0)