Change:Debian packager post install and post remove

This commit is contained in:
advplyr 2022-01-15 10:31:05 -06:00
parent 5280ab222b
commit 0335da4477
3 changed files with 28 additions and 7 deletions

View file

@ -2,6 +2,8 @@
set -e
set -o pipefail
FFMPEG_INSTALL_DIR="/usr/lib/audiobookshelf-ffmpeg/"
declare -r init_type='auto'
declare -ri no_rebuild='0'
@ -81,5 +83,6 @@ add_user 'audiobookshelf' '' 'audiobookshelf' 'audiobookshelf user-daemon' '/bin
mkdir -p '/var/log/audiobookshelf'
chown -R 'audiobookshelf:audiobookshelf' '/var/log/audiobookshelf'
chown -R 'audiobookshelf:audiobookshelf' '/usr/share/audiobookshelf'
chown -R 'audiobookshelf:audiobookshelf' "$FFMPEG_INSTALL_DIR"
start_service 'audiobookshelf'