From 34883f2d5c93b2970950112ac73990d9d3fc1af0 Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 7 Aug 2024 18:31:34 +0200 Subject: [PATCH] Add Debian Configuration --- Cargo.toml | 18 ++++++++++++++++++ debian/kavita-web-manager-api.service | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 debian/kavita-web-manager-api.service diff --git a/Cargo.toml b/Cargo.toml index f3cbecf..a933bbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/debian/kavita-web-manager-api.service b/debian/kavita-web-manager-api.service new file mode 100644 index 0000000..d1114bb --- /dev/null +++ b/debian/kavita-web-manager-api.service @@ -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 \ No newline at end of file