mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
20 lines
429 B
Plaintext
20 lines
429 B
Plaintext
|
#!/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()
|