Compare commits
2 Commits
2883aed0ac
...
bde01d6f66
| Author | SHA1 | Date | |
|---|---|---|---|
| bde01d6f66 | |||
| d9e02e430d |
@@ -29,7 +29,7 @@ $ installJRMC --help
|
||||
--compat
|
||||
Build/install MC without minimum dependency version requirements
|
||||
--mcversion VERSION
|
||||
Build or install a specific MC version, ex. "33.0.37" or "33" (default: latest)
|
||||
Build or install a specific MC version, ex. "33.0.44" or "33" (default: latest)
|
||||
--mcrepo REPO
|
||||
Specify the MC repository, ex. "bullseye", "bookworm", "noble", etc (default: latest official)
|
||||
--arch ARCH
|
||||
@@ -122,9 +122,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.37`
|
||||
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 33.0.44`
|
||||
|
||||
Build and install an MC 33.0.37 compatibility RPM locally and activate it using the `/path/to/license.mjr`
|
||||
Build and install an MC 33.0.44 compatibility RPM locally and activate it using the `/path/to/license.mjr`
|
||||
|
||||
* `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user`
|
||||
|
||||
|
||||
16
installJRMC
16
installJRMC
@@ -21,7 +21,7 @@ shopt -s extglob
|
||||
|
||||
declare -g SCRIPT_VERSION="1.4.6-dev"
|
||||
declare -g MC_REPO="bullseye" # should match the MC_VERSION
|
||||
declare -g MC_VERSION="33.0.37" # Do find all replace
|
||||
declare -g MC_VERSION="33.0.44" # Do find all replace
|
||||
declare -g BOARD_URL="https://yabb.jriver.com/interact/index.php/board,86.0.html" # MC33
|
||||
declare -ig UPDATE_SWITCH=1 # set to 0 to disable automatic self-update
|
||||
declare -g SCRIPT_URL="https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC"
|
||||
@@ -1498,13 +1498,13 @@ disable_btrfs_cow() {
|
||||
# @description Completely uninstalls MC, services, and firewall rules
|
||||
uninstall() {
|
||||
debug "Running: ${FUNCNAME[0]}"
|
||||
local service unit f i
|
||||
local service type unit f
|
||||
|
||||
echo "Stopping and removing all Media Center services"
|
||||
for service in $(compgen -A "function" "service"); do
|
||||
service="${service##service_}"
|
||||
for i in user system; do
|
||||
set_service_vars "$service" "$i";
|
||||
for type in user system; do
|
||||
set_service_vars "$service" "$type";
|
||||
for unit in "$SERVICE_NAME" "$TIMER_NAME"; do
|
||||
if "${IS_ACTIVE[@]}" "$unit" ||
|
||||
"${IS_ENABLED[@]}" "$unit"; then
|
||||
@@ -1512,16 +1512,10 @@ uninstall() {
|
||||
fi
|
||||
done
|
||||
for f in "$SERVICE_FNAME" "$TIMER_FNAME"; do
|
||||
[[ -f $f ]] &&
|
||||
execute sudo rm -f "$f"
|
||||
[[ -f $f ]] && execute sudo rm -f "$f"
|
||||
done
|
||||
"${RELOAD[@]}"
|
||||
unset f
|
||||
done
|
||||
for f in /etc/systemd/system/jriver-*; do
|
||||
execute sudo rm -f "$f"
|
||||
done
|
||||
unset f
|
||||
done
|
||||
|
||||
echo "Removing MC repositories"
|
||||
|
||||
Reference in New Issue
Block a user