Add Debian Configuration
All checks were successful
Run Tests on Code / run-tests (push) Successful in 28s

This commit is contained in:
Neshura 2024-08-07 18:31:34 +02:00
parent ad53bc9ee3
commit 34883f2d5c
Signed by: Neshura
GPG key ID: 4E2D47B1374C297D
2 changed files with 31 additions and 0 deletions

View file

@ -1,7 +1,25 @@
[package]
authors = ["Neshura"]
name = "kavita-web-manager-api"
version = "0.1.0"
edition = "2021"
description = "API Backend For Easier Uploading To Kavita"
license = "GPL-3.0-or-later"
[package.metadata.deb]
extended-description = "API Backend For Easier Uploading To Kavita"
maintainer-scripts = "debian/"
revision = "1"
depends = ["libc6", "libssl3", "systemd"]
assets = [
[
"target/release/kavita-web-manager-api",
"/usr/local/bin/kavita-web-manager-api",
"755",
]
]
systemd-units = { enable = false }
[dependencies]
axum = "0.7"

13
debian/kavita-web-manager-api.service vendored Normal file
View file

@ -0,0 +1,13 @@
[Unit]
Description="Application for automatically updating Cloudflare DNS records"
After=syslog.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/kavita-web-manager-api
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target