mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 08:34:10 +01:00
Fix:Bash debian postrm script
This commit is contained in:
parent
8a71a6f963
commit
06c7776b15
@ -6,13 +6,19 @@ 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"
|
||||
if [[ -d "$FFMPEG_INSTALL_DIR" ]]
|
||||
then
|
||||
echo "Forcefully removing audiobookshelf-ffmpeg: $FFMPEG_INSTALL_DIR"
|
||||
rm -r "$FFMPEG_INSTALL_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
remove_binary() {
|
||||
echo "Removing audiobookshelf binary: $ABS_BINARY_PATH"
|
||||
rm "$ABS_BINARY_PATH"
|
||||
if [[ -f "$ABS_BINARY_PATH" ]]
|
||||
then
|
||||
echo "Removing audiobookshelf binary: $ABS_BINARY_PATH"
|
||||
rm "$ABS_BINARY_PATH"
|
||||
fi
|
||||
}
|
||||
|
||||
echo ">> Cleaning up"
|
||||
|
Loading…
Reference in New Issue
Block a user