Update deploy method
This commit is contained in:
@@ -65,7 +65,7 @@ function update_script() {
|
|||||||
|
|
||||||
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
|
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_from_url "https://github.com/goauthentik/authentik/archive/refs/tags/${AUTHENTIK_VERSION}.tar.gz" "/opt/authentik"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||||
|
|
||||||
msg_info "Update web"
|
msg_info "Update web"
|
||||||
cd /opt/authentik/web
|
cd /opt/authentik/web
|
||||||
@@ -100,7 +100,6 @@ function update_script() {
|
|||||||
|
|
||||||
chown -R authentik:authentik /opt/authentik
|
chown -R authentik:authentik /opt/authentik
|
||||||
|
|
||||||
echo ${AUTHENTIK_VERSION} | tr -d 'v' > $HOME/.authentik
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Restarting services"
|
msg_info "Restarting services"
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ msg_ok "xmlsec installed"
|
|||||||
setup_nodejs
|
setup_nodejs
|
||||||
setup_go
|
setup_go
|
||||||
|
|
||||||
fetch_and_deploy_from_url "https://github.com/goauthentik/authentik/archive/refs/tags/${AUTHENTIK_VERSION}.tar.gz" "/opt/authentik"
|
fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||||
|
|
||||||
msg_info "Setup web"
|
msg_info "Setup web"
|
||||||
cd /opt/authentik/web
|
cd /opt/authentik/web
|
||||||
@@ -195,8 +195,6 @@ EOF
|
|||||||
systemctl enable -q --now authentik-server.service authentik-worker.service
|
systemctl enable -q --now authentik-server.service authentik-worker.service
|
||||||
msg_ok "Services created"
|
msg_ok "Services created"
|
||||||
|
|
||||||
echo ${AUTHENTIK_VERSION} | tr -d 'v' > $HOME/.authentik
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
Reference in New Issue
Block a user