Skip to content

Commit 21b5b00

Browse files
authored
Get ready for PR
1 parent dd7dfa8 commit 21b5b00

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

ct/komga.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
source <(curl -s https://raw.githubusercontent.com/DysfunctionalProgramming/ProxmoxVE/main/misc/build.func)
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
33
# Copyright (c) 2024 madelyn
44
# Author: madelyn (DysfunctionalProgramming)
55
# License: MIT
@@ -19,7 +19,7 @@ EOF
1919
header_info
2020
echo -e "Loading..."
2121
APP="Komga"
22-
var_disk="2"
22+
var_disk="4"
2323
var_cpu="1"
2424
var_ram="2048"
2525
var_os="debian"
@@ -56,12 +56,13 @@ function update_script() {
5656
header_info
5757
if [[ ! -d /opt/komga ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
5858
msg_info "Updating ${APP}"
59-
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
59+
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
6060
if [[ ! -d /opt/komga/komga-${RELEASE}.jar ]]; then
6161
systemctl stop komga
6262
msg_info "Downloading ${APP} v$RELEASE"
6363
wget -q "https://github.com/gotson/komga/releases/download/v$RELEASE/komga-${RELEASE}.jar"
64-
mv komga-${RELEASE}.jar /opt/komga/komga-${RELEASE}.jar
64+
mkdir -p /opt/komga
65+
mv -f komga-${RELEASE}.jar /opt/komga/komga-${RELEASE}.jar
6566
systemctl start komga
6667
fi
6768
msg_ok "Updated ${APP} to v$RELEASE"

install/komga-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (c) 2021-2024 tteck
43
# Copyright (c) 2024 madelyn
54
# Author: madelyn (DysfunctionalProgramming)
65
# License: MIT
@@ -23,8 +22,9 @@ RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | gr
2322

2423
msg_info "Installing Komga"
2524
wget -q https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar
26-
mv https://github.com/gotson/komga/releases/download/${RELEASE}/komga-${RELEASE}.jar /opt/komga
27-
msg_ok "Installed TriliumNext"
25+
mkdir -p /opt/komga
26+
mv -f komga-${RELEASE}.jar /opt/komga/komga-${RELEASE}.jar
27+
msg_ok "Installed Komga 😊"
2828

2929
msg_info "Creating Service"
3030
service_path="/etc/systemd/system/komga.service"

json/komga.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "Komga",
3+
"slug": "komga",
4+
"categories": [
5+
12
6+
],
7+
"date_created": "2024-11-15",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": "25600",
12+
"documentation": null,
13+
"website": "https://komga.org/",
14+
"logo": "https://github.com/gotson/komga/raw/master/.github/readme-images/app-icon.png",
15+
"description": "A media server for your comics, mangas, BDs, magazines and eBooks. Organize your CBZ, CBR, PDF and EPUB files in different libraries, collections or reading lists. Use the integrated Webreader, the Mihon extension, any OPDS reader, or other integrations. Edit metadata for your series and books.",
16+
"install_methods": [
17+
{
18+
"type": "default",
19+
"script": "ct/komga.sh",
20+
"resources": {
21+
"cpu": "2",
22+
"ram": "2048",
23+
"hdd": "4",
24+
"os": "debian",
25+
"version": "12"
26+
}
27+
}
28+
],
29+
"default_credentials": {
30+
"username": null,
31+
"password": null
32+
},
33+
"notes": []
34+
}

0 commit comments

Comments
 (0)