Change:Debian packager post install and post remove

This commit is contained in:
advplyr 2022-01-15 10:31:05 -06:00
parent 5280ab222b
commit 0335da4477
3 changed files with 28 additions and 7 deletions

View file

@ -0,0 +1,20 @@
#!/bin/bash
set -e
set -o pipefail
FFMPEG_INSTALL_DIR="/usr/lib/audiobookshelf-ffmpeg/"
ABS_BINARY_PATH="/usr/share/audiobookshelf/audiobookshelf"
remove_ffmpeg() {
echo "Forcefully removing audiobookshelf-ffmpeg: $FFMPEG_INSTALL_DIR"
rm -rf "$FFMPEG_INSTALL_DIR"
}
remove_binary() {
echo "Removing audiobookshelf binary: $ABS_BINARY_PATH"
rm "$ABS_BINARY_PATH"
}
echo ">> Cleaning up"
remove_ffmpeg()
remove_binary()