Alpine tinyauth draft

This commit is contained in:
tremor021
2025-03-25 20:34:51 +01:00
parent f9f484235d
commit 0c805d8a25
2 changed files with 108 additions and 0 deletions

44
ct/alpine-tinyauth.sh Normal file
View File

@@ -0,0 +1,44 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: Slaviša Arežina (tremor021)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/steveiliop56/tinyauth
APP="tinyauth"
var_tags="alpine;auth"
var_cpu="1"
var_ram="512"
var_disk="2"
var_os="alpine"
var_version="3.21"
var_unprivileged="1"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
msg_info "Updating Alpine Packages"
$STD apk update && apk upgrade
msg_ok "Updated Alpine Packages"
echo "DEBUG: CT_TYPE before update_script=${CT_TYPE:-UNDEFINED}"
echo "DEBUG: var_unprivileged=${var_unprivileged:-UNDEFINED}"
msg_info "Updating tinyauth"
$STD apk upgrade tinyauth
msg_ok "Updated tinyauth"
msg_info "Restarting tinyauth"
$STD rc-service tinyauth restart
msg_ok "Restarted tinyauth"
}
start
build_container
description
msg_ok "Completed Successfully!\n"