Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion ct/dispatcharr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,21 @@ EOF
msg_ok "Migrated Nginx Configuration"
fi

ensure_dependencies vlc-bin vlc-plugin-base
ensure_dependencies vlc-bin vlc-plugin-base build-essential autoconf libtool libargtable2-dev libavformat-dev libsdl2-dev libswscale-dev

if ! command -v comskip &> /dev/null; then
msg_info "Compiling Comskip"
if [[ ! -d "/opt/Comskip" ]]; then
Comment thread
asylumexp marked this conversation as resolved.
Outdated
mkdir -p /opt/Comskip
wget -qO- https://github.com/erikkaashoek/Comskip/archive/refs/heads/master.tar.gz | tar -xz -C /opt/Comskip --strip-components=1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the tar command this verbose upon running (eg does it need $STD?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i thought it was fine since i uses the -xz flag makes it silent. but now that you mention it, i realized definitely still needs $STD to handle exceptions properly. Thanks for pointing that out! I'll push a fix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, actually, when @tremor021 mentioned using a release tarball earlier, I completely missed that there's actually a built-in helper function fetch_and_deploy_from_url exactly for this. I'll get that swapped over!

fi
cd /opt/Comskip
$STD ./autogen.sh
$STD ./configure
$STD make
$STD make install
msg_ok "Compiled and Installed Comskip"
fi

if check_for_gh_release "Dispatcharr" "Dispatcharr/Dispatcharr"; then
msg_info "Stopping Services"
Expand Down
18 changes: 17 additions & 1 deletion install/dispatcharr-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,25 @@ $STD apt install -y \
procps \
vlc-bin \
vlc-plugin-base \
streamlink
streamlink \
autoconf \
libtool \
libargtable2-dev \
libavformat-dev \
libsdl2-dev \
libswscale-dev
msg_ok "Installed Dependencies"

msg_info "Compiling Comskip"
mkdir -p /opt/Comskip
wget -qO- https://github.com/erikkaashoek/Comskip/archive/refs/heads/master.tar.gz | tar -xz -C /opt/Comskip --strip-components=1
cd /opt/Comskip
$STD ./autogen.sh
$STD ./configure
$STD make
$STD make install
msg_ok "Compiled and Installed Comskip"

setup_uv
NODE_VERSION="24" setup_nodejs
PG_VERSION="16" setup_postgresql
Expand Down