From 97455d535c6214b04eca14812029ced23c7524e1 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Tue, 13 Jun 2023 14:25:11 +0200 Subject: [PATCH] add postrm, fix #326 --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- debian/postinst | 1 + debian/postrm | 23 +++++++++++++++++++++++ 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 debian/postrm diff --git a/Cargo.lock b/Cargo.lock index 497252b4..62b2cefa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -955,7 +955,7 @@ dependencies = [ [[package]] name = "ffplayout" -version = "0.18.1" +version = "0.18.2" dependencies = [ "chrono", "clap", @@ -975,7 +975,7 @@ dependencies = [ [[package]] name = "ffplayout-api" -version = "0.18.1" +version = "0.18.2" dependencies = [ "actix-files", "actix-multipart", @@ -1008,7 +1008,7 @@ dependencies = [ [[package]] name = "ffplayout-lib" -version = "0.18.1" +version = "0.18.2" dependencies = [ "chrono", "crossbeam-channel", @@ -2891,7 +2891,7 @@ dependencies = [ [[package]] name = "tests" -version = "0.18.1" +version = "0.18.2" dependencies = [ "chrono", "crossbeam-channel", diff --git a/Cargo.toml b/Cargo.toml index cc9d2bfe..84cce657 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["ffplayout-api", "ffplayout-engine", "lib", "tests"] default-members = ["ffplayout-api", "ffplayout-engine", "tests"] [workspace.package] -version = "0.18.1" +version = "0.18.2" license = "GPL-3.0" repository = "https://github.com/ffplayout/ffplayout" authors = ["Jonathan Baecker "] diff --git a/debian/postinst b/debian/postinst index 1b255f10..12f239ef 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,3 +1,4 @@ +#!/bin/sh #DEBHELPER# sysUser="ffpu" diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 00000000..f5053657 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,23 @@ +#!/bin/sh +#DEBHELPER# + +sysUser="ffpu" + +case "$1" in + abort-install|purge) + deluser $sysUser + rm -rf /usr/share/ffplayout /var/log/ffplayout /etc/ffplayout /var/lib/ffplayout /home/$sysUser + ;; + + remove) + rm -rf /var/log/ffplayout + ;; + + upgrade|failed-upgrade|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac