-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
30 lines (22 loc) · 827 Bytes
/
Copy pathsetup.sh
File metadata and controls
30 lines (22 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "Installing Please Wait...."
# To Ignore Error
export DEBIAN_FRONTEND=noninteractive
# It's Check For This Is Termux or Linux
if [ -n "$TERMUX_VERSION" ] || [[ "$PREFIX" == *com.termux* ]]; then
# Setup For Termux
apt update -y || true
apt install nodejs -y || true
npm init -y || true
npm install express socket.io multer cors || true
apt install cloudflared -y || true
else
# Setup For Debian Linux
sudo apt update -y || true
sudo -E apt install nodejs wget -y || true
npm init -y || true
npm install express socket.io multer cors || true
wget -q https://github.com/cloudflare/cloudflared/releases/download/2026.3.0/cloudflared-fips-linux-amd64.deb || true
sudo dpkg -i cloudflared-fips-linux-amd64.deb || true
fi
echo "Installation done."