mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Change:Remove post remove bash
This commit is contained in:
parent
06c7776b15
commit
48921c3150
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
FFMPEG_INSTALL_DIR="/usr/lib/audiobookshelf-ffmpeg/"
|
|
||||||
ABS_BINARY_PATH="/usr/share/audiobookshelf/audiobookshelf"
|
|
||||||
|
|
||||||
remove_ffmpeg() {
|
|
||||||
if [[ -d "$FFMPEG_INSTALL_DIR" ]]
|
|
||||||
then
|
|
||||||
echo "Forcefully removing audiobookshelf-ffmpeg: $FFMPEG_INSTALL_DIR"
|
|
||||||
rm -r "$FFMPEG_INSTALL_DIR"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_binary() {
|
|
||||||
if [[ -f "$ABS_BINARY_PATH" ]]
|
|
||||||
then
|
|
||||||
echo "Removing audiobookshelf binary: $ABS_BINARY_PATH"
|
|
||||||
rm "$ABS_BINARY_PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
echo ">> Cleaning up"
|
|
||||||
remove_ffmpeg
|
|
||||||
remove_binary
|
|
Loading…
Reference in New Issue
Block a user