mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Alpine tinyauth draft
This commit is contained in:
44
ct/alpine-tinyauth.sh
Normal file
44
ct/alpine-tinyauth.sh
Normal 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"
|
||||
Reference in New Issue
Block a user