2023-03-22 20:48:20 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 tteck
|
2023-03-22 20:48:20 -04:00
|
|
|
# Author: tteck (tteckster)
|
2025-03-04 17:54:20 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
# Source: https://www.audiobookshelf.org/
|
2023-03-22 20:48:20 -04:00
|
|
|
|
2025-03-24 14:20:56 +01:00
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
2023-03-22 20:48:20 -04:00
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
2025-09-10 16:20:26 +02:00
|
|
|
msg_info "Installing Dependencies"
|
2026-01-23 21:54:23 +01:00
|
|
|
$STD apt install -y ffmpeg
|
2025-09-10 16:20:26 +02:00
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
2026-01-04 18:33:09 +01:00
|
|
|
setup_deb822_repo \
|
|
|
|
|
"audiobookshelf" \
|
|
|
|
|
"https://advplyr.github.io/audiobookshelf-ppa/KEY.gpg" \
|
|
|
|
|
"https://advplyr.github.io/audiobookshelf-ppa" \
|
|
|
|
|
"./"
|
|
|
|
|
|
2025-09-10 16:20:26 +02:00
|
|
|
msg_info "Setup audiobookshelf"
|
|
|
|
|
$STD apt install -y audiobookshelf
|
|
|
|
|
echo "FFMPEG_PATH=/usr/bin/ffmpeg" >>/etc/default/audiobookshelf
|
|
|
|
|
echo "FFPROBE_PATH=/usr/bin/ffprobe" >>/etc/default/audiobookshelf
|
2026-01-04 18:33:09 +01:00
|
|
|
systemctl restart audiobookshelf
|
2025-09-10 16:20:26 +02:00
|
|
|
msg_ok "Setup audiobookshelf"
|
2023-03-22 20:48:20 -04:00
|
|
|
|
|
|
|
|
motd_ssh
|
2023-05-15 07:39:30 -04:00
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|