From eb3bb297b99126f226c14d64077fff3846ed2d34 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Wed, 26 Feb 2025 11:37:37 +0200 Subject: [PATCH] Update URLs to use raw.githubusercontent.com for downloads Switched from git.vdm.dev to raw.githubusercontent.com for fetching [octojoom] and related scripts. This ensures wider accessibility and consistency with GitHub's standard hosting practices. Updated references in the script and README accordingly.Update URLs to use raw.githubusercontent.com for downloads Switched from git.vdm.dev to raw.githubusercontent.com for fetching [octojoom] and related scripts. This ensures wider accessibility and consistency with GitHub's standard hosting practices. Updated references in the script and README accordingly. --- README.md | 2 +- src/octojoom | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 847c60d..e0901ba 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Linted by [#ShellCheck](https://github.com/koalaman/shellcheck) --- # Install ```shell -$ sudo curl -L "https://git.vdm.dev/api/v1/repos/octoleo/octojoom/raw/src/octojoom" -o /usr/local/bin/octojoom +$ sudo curl -L "https://raw.githubusercontent.com/octoleo/octojoom/refs/heads/master/src/octojoom" -o /usr/local/bin/octojoom $ sudo chmod +x /usr/local/bin/octojoom ``` diff --git a/src/octojoom b/src/octojoom index ba47f5b..42d625a 100755 --- a/src/octojoom +++ b/src/octojoom @@ -2682,7 +2682,7 @@ function runUpdate() { # get the target branch to use in our update isExpert && branch=$(getTargetBranch) # pull the latest version. Master is always the latest - if sudo curl --fail -L "https://git.vdm.dev/api/v1/repos/octoleo/octojoom/raw/src/octojoom?ref=${branch:-master}" -o /usr/local/bin/octojoom 2>/dev/null; then + if sudo curl --fail -L "https://raw.githubusercontent.com/octoleo/octojoom/refs/heads/${branch:-master}/src/octojoom" -o /usr/local/bin/octojoom 2>/dev/null; then # give success message echo "SUCCESS: Update was successful." # do we have a backup @@ -3849,7 +3849,7 @@ function getImageSource() { local i=2 # set the defaults default="joomla|https://hub.docker.com/_/joomla?tab=tags;https://raw.githubusercontent.com/joomla-docker/docker-joomla/master/docker-entrypoint.sh" - default_octojoom="llewellyn/joomla|https://hub.docker.com/r/llewellyn/joomla/tags;https://git.vdm.dev/octoleo/docker-joomla/raw/branch/octoleo/docker-entrypoint.sh" + default_octojoom="llewellyn/joomla|https://hub.docker.com/r/llewellyn/joomla/tags;https://raw.githubusercontent.com/octoleo/docker-joomla/refs/heads/octoleo/docker-entrypoint.sh" # we only ask if we are in expert mode if isExpert; then # set the base images source