proxmox-reverseProxy/lxc/nginx-proxy-manager/setup.sh
2021-07-20 17:10:32 +02:00

28 lines
513 B
Bash

#!/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
rm -rf $TMP
wget -O "$TMP" "$URL/$DISTRO.sh"
chmod +x "$TMP"
if [ "$(command -v bash)" ]; then
bash "$TMP"
else
sh "$TMP"
fi