Skip to content

Commit

Permalink
service start and update function
Browse files Browse the repository at this point in the history
  • Loading branch information
thost96 authored Feb 5, 2025
1 parent 6ade0a2 commit cbd7fd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 5 additions & 5 deletions ct/authelia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source <(curl -s https://raw.githubusercontent.com/thost96/ProxmoxVE-scripts/aut
# Copyright (c) 2021-2025 community-scripts ORG
# Author: thost96 (thost96)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.authelia.com/integration/deployment/bare-metal/"
# Source: https://www.authelia.com/


# App Default Values
Expand Down Expand Up @@ -32,7 +32,7 @@ function update_script() {
check_container_resources
if [[ ! -d "/etc/authelia/" ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
RELEASE=$(curl -s https://api.github.com/repos/authelia/authelia/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
#if [[ "${RELEASE}" != "$(cat )" ]]; then
if [[ "${RELEASE}" != "$(/usr/bin/authelia -v | awk '{print substr($3, 2, length($2)) }' )" ]]; then
msg_info "Updating $APP to ${RELEASE}"
$STD apt-get update &>/dev/null
$STD apt-get -y upgrade &>/dev/null
Expand All @@ -44,9 +44,9 @@ function update_script() {
$STD apt-get -y autoclean
msg_ok "Cleanup Completed"
msg_ok "Updated $APP to ${RELEASE}"
#else
# msg_ok "No update required. ${APP} is already at ${RELEASE}"
#fi
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit
}

Expand Down
7 changes: 2 additions & 5 deletions install/authelia-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (c) 2021-2025 community-scripts ORG
# Author: thost96 (thost96)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.authelia.com/integration/deployment/bare-metal/"
# Source: https://www.authelia.com/


# Import Functions und Setup
Expand Down Expand Up @@ -76,10 +76,7 @@ notifier:
filesystem:
filename: /etc/authelia/emails.txt
EOF

#msg_info "Validating Authelia Config"
#$STD authelia config validate -c /etc/authelia/configuration.yml

$STD systemctl start authelia
msg_ok "Authelia Setup completed"

motd_ssh
Expand Down

0 comments on commit cbd7fd0

Please sign in to comment.