mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-05 02:01:35 +00:00
Change:Debian packager post install and post remove
This commit is contained in:
parent
5280ab222b
commit
0335da4477
3 changed files with 28 additions and 7 deletions
20
build/debian/DEBIAN/postrm
Normal file
20
build/debian/DEBIAN/postrm
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue