mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
20 lines
425 B
Bash
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 |