mirror of https://github.com/tteck/Proxmox.git
Compare commits
6 Commits
15be0761ff
...
496b9bf92c
Author | SHA1 | Date |
---|---|---|
tteckster | 496b9bf92c | |
tteckster | 6596850918 | |
tteckster | fc5ea73e45 | |
tteckster | f64e8ef47b | |
tteckster | e6b86f3d47 | |
tteckster | 7daad62fad |
|
@ -60,6 +60,12 @@ RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/late
|
||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
|
cat <<EOF >/etc/apt/preferences.d/bunkerweb
|
||||||
|
Package: bunkerweb
|
||||||
|
Pin: version ${RELEASE}
|
||||||
|
Pin-Priority: 1001
|
||||||
|
EOF
|
||||||
|
apt-get update
|
||||||
apt-get install nginx -y
|
apt-get install nginx -y
|
||||||
apt-get install -y bunkerweb=${RELEASE}
|
apt-get install -y bunkerweb=${RELEASE}
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
|
|
|
@ -55,7 +55,7 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -f /etc/systemd/system/traefik.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /etc/systemd/system/traefik.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=3.0.4 #$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
msg_info "Updating $APP LXC"
|
msg_info "Updating $APP LXC"
|
||||||
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
||||||
wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz
|
wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz
|
||||||
|
|
|
@ -35,6 +35,11 @@ msg_info "Installing BunkerWeb v${RELEASE}"
|
||||||
export UI_WIZARD=1
|
export UI_WIZARD=1
|
||||||
curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash &>/dev/null
|
curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash &>/dev/null
|
||||||
$STD apt-get install -y bunkerweb=${RELEASE}
|
$STD apt-get install -y bunkerweb=${RELEASE}
|
||||||
|
cat <<EOF >/etc/apt/preferences.d/bunkerweb
|
||||||
|
Package: bunkerweb
|
||||||
|
Pin: version ${RELEASE}
|
||||||
|
Pin-Priority: 1001
|
||||||
|
EOF
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed BunkerWeb v${RELEASE}"
|
msg_ok "Installed BunkerWeb v${RELEASE}"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ $STD apt-get install -y gpg
|
||||||
$STD apt-get install -y apt-transport-https
|
$STD apt-get install -y apt-transport-https
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=3.0.4 #$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
msg_info "Installing Traefik v${RELEASE}"
|
msg_info "Installing Traefik v${RELEASE}"
|
||||||
mkdir -p /etc/traefik/{conf.d,ssl}
|
mkdir -p /etc/traefik/{conf.d,ssl}
|
||||||
wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz
|
wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue