Skip to content

Commit c511f7d

Browse files
Kapowarr (#5584)
1 parent a106e7e commit c511f7d

File tree

4 files changed

+161
-0
lines changed

4 files changed

+161
-0
lines changed

ct/headers/kapowarr

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/kapowarr.sh

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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/Casvt/Kapowarr
7+
8+
APP="Kapowarr"
9+
var_tags="${var_tags:-Arr}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-256}"
12+
var_disk="${var_disk:-2}"
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 [[ ! -f /etc/systemd/system/kapowarr.service ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
RELEASE=$(curl -s https://api.github.com/repos/Casvt/Kapowarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
32+
if [[ "${RELEASE}" != "$(cat $HOME/.kapowarr)" ]] || [[ ! -f $HOME/.kapowarr ]]; then
33+
setup_uv
34+
35+
msg_info "Stopping $APP"
36+
systemctl stop kapowarr
37+
msg_ok "Stopped $APP"
38+
39+
msg_info "Creating Backup"
40+
mv /opt/kapowarr/db /opt/
41+
msg_ok "Backup Created"
42+
43+
fetch_and_deploy_gh_release "kapowarr" "Casvt/Kapowarr"
44+
msg_info "Updating $APP to ${RELEASE}"
45+
mv /opt/db /opt/kapowarr
46+
msg_ok "Updated $APP to ${RELEASE}"
47+
48+
msg_info "Starting $APP"
49+
systemctl start kapowarr
50+
msg_ok "Started $APP"
51+
52+
msg_ok "Update Successful"
53+
else
54+
msg_ok "No update required. ${APP} is already at ${RELEASE}"
55+
fi
56+
exit
57+
}
58+
59+
start
60+
build_container
61+
description
62+
63+
msg_ok "Completed Successfully!\n"
64+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
65+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
66+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5656${CL}"

frontend/public/json/kapowarr.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

install/kapowarr-install.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
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/Casvt/Kapowarr
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Setup Python3"
17+
$STD apt-get install -y python3-pip
18+
msg_ok "Setup Python3"
19+
20+
setup_uv
21+
fetch_and_deploy_gh_release "kapowarr" "Casvt/Kapowarr"
22+
23+
msg_info "Setup Kapowarr"
24+
cd /opt/kapowarr
25+
$STD uv venv .venv
26+
$STD source .venv/bin/activate
27+
$STD uv pip install --upgrade pip
28+
$STD uv pip install --no-cache-dir -r requirements.txt
29+
msg_ok "Installed Kapowarr"
30+
31+
msg_info "Creating Service"
32+
cat <<EOF >/etc/systemd/system/kapowarr.service
33+
[Unit]
34+
Description=Kapowarr Service
35+
After=network.target
36+
37+
[Service]
38+
WorkingDirectory=/opt/kapowarr/
39+
ExecStart=/opt/kapowarr/.venv/bin/python3 Kapowarr.py
40+
Restart=always
41+
42+
[Install]
43+
WantedBy=multi-user.target
44+
EOF
45+
systemctl enable -q --now kapowarr
46+
msg_ok "Created Service"
47+
48+
motd_ssh
49+
customize
50+
51+
msg_info "Cleaning up"
52+
$STD apt-get -y autoremove
53+
$STD apt-get -y autoclean
54+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)