From 710f62fa50d5dc9e7fdad4e10698c0cdf725b40d Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:00:44 -0600 Subject: [PATCH] Update plex-install.sh - change crontab to allow for beta version --- plex/plex-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plex/plex-install.sh b/plex/plex-install.sh index f7a83f3..f512a6d 100644 --- a/plex/plex-install.sh +++ b/plex/plex-install.sh @@ -24,7 +24,11 @@ cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/ sed -i '' "s/quarterly/latest/" /usr/local/etc/pkg/repos/FreeBSD.conf # Enable Daily Package Updates -fetch -o /tmp/update_packages https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/plex/includes/update_packages.cron +if [ ${BETA} -eq 1 ]; then + fetch -o /tmp/update_packages https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/plex/includes/update_packages.cron.beta +else + fetch -o /tmp/update_packages https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/plex/includes/update_packages.cron +fi crontab /tmp/update_packages rm /tmp/update_packages