Skip to content

Commit

Permalink
Get ready for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
yry-dev authored Nov 16, 2024
1 parent dd7dfa8 commit 21b5b00
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
9 changes: 5 additions & 4 deletions ct/komga.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/DysfunctionalProgramming/ProxmoxVE/main/misc/build.func)
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2024 madelyn
# Author: madelyn (DysfunctionalProgramming)
# License: MIT
Expand All @@ -19,7 +19,7 @@ EOF
header_info
echo -e "Loading..."
APP="Komga"
var_disk="2"
var_disk="4"
var_cpu="1"
var_ram="2048"
var_os="debian"
Expand Down Expand Up @@ -56,12 +56,13 @@ function update_script() {
header_info
if [[ ! -d /opt/komga ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}"
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
RELEASE=$(curl -s https://api.github.com/repos/gotson/komga/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ ! -d /opt/komga/komga-${RELEASE}.jar ]]; then
systemctl stop komga
msg_info "Downloading ${APP} v$RELEASE"
wget -q "https://github.com/gotson/komga/releases/download/v$RELEASE/komga-${RELEASE}.jar"
mv komga-${RELEASE}.jar /opt/komga/komga-${RELEASE}.jar
mkdir -p /opt/komga
mv -f komga-${RELEASE}.jar /opt/komga/komga-${RELEASE}.jar
systemctl start komga
fi
msg_ok "Updated ${APP} to v$RELEASE"
Expand Down
6 changes: 3 additions & 3 deletions install/komga-install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

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

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

msg_info "Creating Service"
service_path="/etc/systemd/system/komga.service"
Expand Down
34 changes: 34 additions & 0 deletions json/komga.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Komga",
"slug": "komga",
"categories": [
12
],
"date_created": "2024-11-15",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": "25600",
"documentation": null,
"website": "https://komga.org/",
"logo": "https://github.com/gotson/komga/raw/master/.github/readme-images/app-icon.png",
"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.",
"install_methods": [
{
"type": "default",
"script": "ct/komga.sh",
"resources": {
"cpu": "2",
"ram": "2048",
"hdd": "4",
"os": "debian",
"version": "12"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": []
}

0 comments on commit 21b5b00

Please sign in to comment.