2 Commits

Author SHA1 Message Date
9dd5c94c6f Fix source urls 2024-10-03 23:38:24 -04:00
5b35399e1c Update docs 2024-09-18 09:45:07 -04:00
3 changed files with 13 additions and 21 deletions

11
.gitignore vendored
View File

@@ -1,10 +1,3 @@
**/
*.zip
testing.sh
.lock
tests
mwe*
test*
container*
Containerfile
.old/
.vscode/
README.bbcode

View File

@@ -27,7 +27,7 @@ $ installJRMC --help
--compat
Build/install MC without minimum dependency version requirements
--mcversion VERSION
Build or install a specific MC version, ex. "33.0.15" (default: latest version)
Build or install a specific MC version, ex. "33.0.20" (default: latest version)
--mcrepo REPO
Specify the MC repository, ex. "bullseye", "bookworm", "noble", etc (default: latest official)
--arch ARCH
@@ -118,9 +118,9 @@ Multiple services (but not `--service-types`) can be installed at one time using
Install MC from the repository and start/enable `jriver-mediacenter.service` as a user service.
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 33.0.15`
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 33.0.20`
Build and install an MC 33.0.15 comptability RPM locally and activate it using the `/path/to/license.mjr`
Build and install an MC 33.0.20 comptability RPM locally and activate it using the `/path/to/license.mjr`
* `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user`

View File

@@ -16,9 +16,9 @@
shopt -s extglob
declare -g SCRIPT_VERSION="1.3.2"
declare -g SCRIPT_VERSION="1.3.3-dev"
declare -g BOARD_URL="https://yabb.jriver.com/interact/index.php/board,86.0.html" # MC33
declare -g MC_VERSION="33.0.15" # Do find all replace
declare -g MC_VERSION="33.0.20" # Do find all replace
declare -g MC_DEFAULT_REPO="bullseye" # should match the MC_VERSION
declare -ig SELF_UPDATE=1
@@ -664,16 +664,15 @@ acquire_deb() {
# Define the repositories to check
local repos=(
"beta/$BETAPASS"
"latest"
"test"
"https://files.jriver-cdn.com/mediacenter/channels/v$MVERSION/latest/MediaCenter-$MC_VERSION-$ARCH.deb"
"https://files.jriver-cdn.com/mediacenter/test/MediaCenter-$MC_VERSION-$ARCH.deb"
"https://files.jriver-cdn.com/mediacenter/channels/v$MVERSION/beta/$BETAPASS/MediaCenter-$MC_VERSION-$ARCH.deb"
)
# Loop through the repositories and attempt to download
for repo in "${repos[@]}"; do
echo "Checking $repo repo for DEB package"
if execute wget --quiet --output-document "$MC_DEB" \
"https://files.jriver-cdn.com/mediacenter/channels/v$MC_VERSION/$repo/MediaCenter-$MC_VERSION-$ARCH.deb"; then
echo "Checking $repo for DEB package"
if execute wget --quiet --output-document "$MC_DEB" "$repo"; then
echo "Found!"
break
fi