From 9a6846ce2a0bce9aa4af3da99955ba779b22038a Mon Sep 17 00:00:00 2001 From: Elton Renda Date: Thu, 5 Nov 2020 09:00:04 +0200 Subject: [PATCH] add alternative usage --- lxc/nginx-proxy-manager/README.md | 15 ++++++++++++--- lxc/nginx-proxy-manager/setup.sh | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lxc/nginx-proxy-manager/README.md b/lxc/nginx-proxy-manager/README.md index 823c9b7..6c89d14 100644 --- a/lxc/nginx-proxy-manager/README.md +++ b/lxc/nginx-proxy-manager/README.md @@ -22,18 +22,27 @@ curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-man | --hostname | nginx-proxy-manager | hostname of the container | | --memory | 512 | amount of memory | | --storage | local-lvm | storage location for container disk | -| --swap | 0 | Amount of SWAP | +| --swap | 0 | amount of SWAP | you can set these parameters by appending ` -- ` like: ```bash -curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh | bash -s -- -c 4 +curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh | bash -s -- --cores 4 ``` -## Console +### Console There is no login required to access the console from the Proxmox web UI. If you are presented with a blank screen, press `CTRL + C` to generate a prompt. + +## Alternative Usage + +If you are not using proxmox or want to install this on a existing Alpine box, you can run the setup script itself. + +```bash +wget --no-cache -qO - https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/setup.sh | sh +``` + ## Thanks - [whiskerz007](https://github.com/whiskerz007?tab=repositories) \ No newline at end of file diff --git a/lxc/nginx-proxy-manager/setup.sh b/lxc/nginx-proxy-manager/setup.sh index 494985f..658f721 100644 --- a/lxc/nginx-proxy-manager/setup.sh +++ b/lxc/nginx-proxy-manager/setup.sh @@ -7,7 +7,8 @@ function info { echo -e "\e[32m[info] $*\e[39m"; } _temp_dir=$(mktemp -d) cd $_temp_dir -_version_alpine=${_version_alpine:-3.12} +. /etc/os-release +_version_alpine=${VERSION_ID%.*} _version_npm=${_version_npm:-2.6.1} # add openresty repo