proxmox-reverseProxy/lxc/nginx-proxy-manager/setup.sh

28 lines
513 B
Bash
Raw Normal View History

2020-11-04 16:50:28 +00:00
#!/usr/bin/env sh
TMP=/tmp/npm_install.sh
URL=https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/install
if [ "$(uname)" != "Linux" ]; then
echo "OS NOT SUPPORTED"
exit 1
fi
DISTRO=$(cat /etc/*-release | grep -w ID | cut -d= -f2 | tr -d '"')
if [ "$DISTRO" != "alpine" ] && [ "$DISTRO" != "ubuntu" ]; then
echo "DISTRO NOT SUPPORTED"
exit 1
fi
2020-11-04 16:50:28 +00:00
rm -rf $TMP
wget -O "$TMP" "$URL/$DISTRO.sh"
2020-11-04 16:50:28 +00:00
chmod +x "$TMP"
if [ "$(command -v bash)" ]; then
bash "$TMP"
else
sh "$TMP"
fi
2020-11-04 16:50:28 +00:00