Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit f1ff776

Browse files
authored
chore: update scripts (#78)
1 parent 0eadd57 commit f1ff776

32 files changed

Lines changed: 1776 additions & 781 deletions

ct/alpine-komodo.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://komo.do
7+
8+
APP="Alpine-Komodo"
9+
var_tags="${var_tags:-docker,alpine}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-10}"
13+
var_os="${var_os:-alpine}"
14+
var_version="${var_version:-3.21}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
[[ -d /opt/komodo ]] || {
24+
msg_error "No ${APP} Installation Found!"
25+
exit 1
26+
}
27+
28+
msg_info "Updating ${APP}"
29+
COMPOSE_FILE=$(find /opt/komodo -maxdepth 1 -type f -name '*.compose.yaml' ! -name 'compose.env' | head -n1)
30+
if [[ -z "$COMPOSE_FILE" ]]; then
31+
msg_error "No valid compose file found in /opt/komodo!"
32+
exit 1
33+
fi
34+
COMPOSE_BASENAME=$(basename "$COMPOSE_FILE")
35+
BACKUP_FILE="/opt/komodo/${COMPOSE_BASENAME}.bak_$(date +%Y%m%d_%H%M%S)"
36+
cp "$COMPOSE_FILE" "$BACKUP_FILE" || {
37+
msg_error "Failed to create backup of ${COMPOSE_BASENAME}!"
38+
exit 1
39+
}
40+
GITHUB_URL="https://raw.githubusercontent.com/moghtech/komodo/main/compose/${COMPOSE_BASENAME}"
41+
if ! curl -fsSL "$GITHUB_URL" -o "$COMPOSE_FILE"; then
42+
msg_error "Failed to download ${COMPOSE_BASENAME} from GitHub!"
43+
mv "$BACKUP_FILE" "$COMPOSE_FILE"
44+
exit 1
45+
fi
46+
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file /opt/komodo/compose.env up -d
47+
msg_ok "Updated ${APP}"
48+
exit
49+
}
50+
51+
start
52+
build_container
53+
description
54+
55+
msg_ok "Completed Successfully!\n"
56+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
57+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
58+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9120${CL}"

ct/alpine-rclone.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/rclone/rclone
7+
8+
APP="Alpine-rclone"
9+
var_tags="${var_tags:-alpine;backup}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-256}"
12+
var_disk="${var_disk:-1}"
13+
var_os="${var_os:-alpine}"
14+
var_version="${var_version:-3.21}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [ ! -d /opt/rclone ]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit 1
30+
fi
31+
32+
RELEASE=$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
33+
if [ "${RELEASE}" != "$(cat /opt/rclone_version.txt)" ] || [ ! -f /opt/rclone_version.txt ]; then
34+
msg_info "Updating ${APP} LXC"
35+
temp_file=$(mktemp)
36+
curl -fsSL "https://github.com/rclone/rclone/releases/download/v${RELEASE}/rclone-v${RELEASE}-linux-amd64.zip" -o "$temp_file"
37+
$STD unzip -o "$temp_file" '*/**' -d /opt/rclone
38+
rm -f "$temp_file"
39+
echo "${RELEASE}" >/opt/rclone_version.txt
40+
msg_ok "Updated Successfully"
41+
else
42+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
43+
fi
44+
45+
exit 0
46+
}
47+
48+
start
49+
build_container
50+
description
51+
52+
msg_ok "Completed Successfully!\n"
53+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
54+
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
55+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

ct/alpine-tinyauth.sh

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/steveiliop56/tinyauth
7+
8+
APP="Alpine-tinyauth"
9+
var_tags="${var_tags:-alpine;auth}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-3}"
13+
var_os="${var_os:-alpine}"
14+
var_version="${var_version:-3.21}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
if [[ ! -d /opt/tinyauth ]]; then
24+
msg_error "No ${APP} Installation Found!"
25+
exit 1
26+
fi
27+
28+
msg_info "Updating Alpine Packages"
29+
$STD apk update
30+
$STD apk upgrade
31+
msg_ok "Updated Alpine Packages"
32+
33+
msg_info "Updating tinyauth"
34+
RELEASE=$(curl -s https://api.github.com/repos/steveiliop56/tinyauth/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
35+
if [ "${RELEASE}" != "$(cat /opt/tinyauth_version.txt)" ] || [ ! -f /opt/tinyauth_version.txt ]; then
36+
$STD service tinyauth stop
37+
temp_file=$(mktemp)
38+
cp /opt/tinyauth/.env /opt
39+
rm -rf /opt/tinyauth
40+
mkdir -p /opt/tinyauth
41+
curl -fsSL "https://github.com/steveiliop56/tinyauth/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
42+
tar -xzf "$temp_file" -C /opt/tinyauth --strip-components=1
43+
cd /opt/tinyauth/frontend
44+
$STD bun install
45+
$STD bun run build
46+
mv dist /opt/tinyauth/internal/assets/
47+
cd /opt/tinyauth
48+
$STD go mod download
49+
CGO_ENABLED=0 go build -ldflags "-s -w"
50+
cp /opt/.env /opt/tinyauth
51+
echo "${RELEASE}" >/opt/tinyauth_version.txt
52+
rm -f "$temp_file"
53+
msg_info "Restarting tinyauth"
54+
$STD service tinyauth start
55+
msg_ok "Restarted tinyauth"
56+
msg_ok "Updated tinyauth"
57+
else
58+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
59+
fi
60+
exit 0
61+
}
62+
63+
start
64+
build_container
65+
description
66+
67+
msg_ok "Completed Successfully!\n"
68+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
69+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
70+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

ct/alpine-transmission.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Slaviša Arežina (tremor021)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://transmissionbt.com/
7+
8+
APP="Alpine-Transmission"
9+
var_tags="${var_tags:-alpine;torrent}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-256}"
12+
var_disk="${var_disk:-1}"
13+
var_os="${var_os:-alpine}"
14+
var_version="${var_version:-3.21}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
msg_info "Updating Alpine Packages"
24+
$STD apk -U upgrade
25+
msg_ok "Updated Alpine Packages"
26+
27+
msg_info "Updating Transmission"
28+
$STD apk upgrade transmission-daemon
29+
msg_ok "Updated Transmission"
30+
31+
msg_info "Restarting Transmission"
32+
$STD rc-service transmission-daemon restart
33+
msg_ok "Restarted Transmission"
34+
35+
exit 1
36+
}
37+
38+
start
39+
build_container
40+
description
41+
42+
msg_ok "Completed Successfully!\n"
43+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
44+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
45+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9091${CL}"

ct/fumadocs.sh

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/fuma-nama/fumadoc
7+
8+
APP="Fumadocs"
9+
var_tags="${var_tags:-documentation}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-5}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/fumadocs ]]; then
28+
msg_error "No installation found in /opt/fumadocs!"
29+
exit 1
30+
fi
31+
32+
if [[ ! -f /opt/fumadocs/.projectname ]]; then
33+
msg_error "Project name file not found: /opt/fumadocs/.projectname!"
34+
exit 1
35+
fi
36+
37+
NODE_VERSION="22" NODE_MODULE="pnpm@latest" install_node_and_modules
38+
PROJECT_NAME=$(</opt/fumadocs/.projectname)
39+
PROJECT_DIR="/opt/fumadocs/${PROJECT_NAME}"
40+
SERVICE_NAME="fumadocs_${PROJECT_NAME}.service"
41+
42+
if [[ ! -d "$PROJECT_DIR" ]]; then
43+
msg_error "Project directory does not exist: $PROJECT_DIR"
44+
exit 1
45+
fi
46+
47+
msg_info "Stopping service $SERVICE_NAME"
48+
systemctl stop "$SERVICE_NAME"
49+
msg_ok "Stopped service $SERVICE_NAME"
50+
51+
msg_info "Updating dependencies using pnpm"
52+
cd "$PROJECT_DIR"
53+
$STD pnpm up --latest
54+
$STD pnpm build
55+
msg_ok "Updated dependencies using pnpm"
56+
57+
msg_info "Starting service $SERVICE_NAME"
58+
systemctl start "$SERVICE_NAME"
59+
msg_ok "Started service $SERVICE_NAME"
60+
61+
msg_ok "Fumadocs successfully updated"
62+
exit
63+
}
64+
65+
start
66+
build_container
67+
description
68+
69+
msg_ok "Completed Successfully!\n"
70+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
71+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
72+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

ct/headers/alpine-komodo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
___ __ _ __ __ __
2+
/ | / /___ (_)___ ___ / //_/___ ____ ___ ____ ____/ /___
3+
/ /| | / / __ \/ / __ \/ _ \______/ ,< / __ \/ __ `__ \/ __ \/ __ / __ \
4+
/ ___ |/ / /_/ / / / / / __/_____/ /| / /_/ / / / / / / /_/ / /_/ / /_/ /
5+
/_/ |_/_/ .___/_/_/ /_/\___/ /_/ |_\____/_/ /_/ /_/\____/\__,_/\____/
6+
/_/

ct/headers/alpine-rclone

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
___ __ _ __
2+
/ | / /___ (_)___ ___ __________/ /___ ____ ___
3+
/ /| | / / __ \/ / __ \/ _ \______/ ___/ ___/ / __ \/ __ \/ _ \
4+
/ ___ |/ / /_/ / / / / / __/_____/ / / /__/ / /_/ / / / / __/
5+
/_/ |_/_/ .___/_/_/ /_/\___/ /_/ \___/_/\____/_/ /_/\___/
6+
/_/

ct/headers/alpine-tinyauth

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
___ __ _ __ _ __ __
2+
/ | / /___ (_)___ ___ / /_(_)___ __ ______ ___ __/ /_/ /_
3+
/ /| | / / __ \/ / __ \/ _ \______/ __/ / __ \/ / / / __ `/ / / / __/ __ \
4+
/ ___ |/ / /_/ / / / / / __/_____/ /_/ / / / / /_/ / /_/ / /_/ / /_/ / / /
5+
/_/ |_/_/ .___/_/_/ /_/\___/ \__/_/_/ /_/\__, /\__,_/\__,_/\__/_/ /_/
6+
/_/ /____/

ct/headers/alpine-transmission

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
___ __ _ ______ _ _
2+
/ | / /___ (_)___ ___ /_ __/________ _____ _________ ___ (_)_________(_)___ ____
3+
/ /| | / / __ \/ / __ \/ _ \______/ / / ___/ __ `/ __ \/ ___/ __ `__ \/ / ___/ ___/ / __ \/ __ \
4+
/ ___ |/ / /_/ / / / / / __/_____/ / / / / /_/ / / / (__ ) / / / / / (__ |__ ) / /_/ / / / /
5+
/_/ |_/_/ .___/_/_/ /_/\___/ /_/ /_/ \__,_/_/ /_/____/_/ /_/ /_/_/____/____/_/\____/_/ /_/
6+
/_/

ct/headers/fumadocs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
______ __
2+
/ ____/_ ______ ___ ____ _____/ /___ __________
3+
/ /_ / / / / __ `__ \/ __ `/ __ / __ \/ ___/ ___/
4+
/ __/ / /_/ / / / / / / /_/ / /_/ / /_/ / /__(__ )
5+
/_/ \__,_/_/ /_/ /_/\__,_/\__,_/\____/\___/____/
6+

0 commit comments

Comments
 (0)