audiobookshelf/build/debian/DEBIAN/postrm
2022-01-15 11:48:25 -06:00

20 lines
425 B
Bash

#!/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