Browse Source

Add migration info and bump version

bryan 6 months ago
2 changed files with 3 additions and 2 deletions
  1. 1 1
  2. 2 1

+ 1 - 1

@@ -8,7 +8,7 @@ This program will install [JRiver Media Center]( (JRMC)
 Running `installJRMC` without any options will install the latest version of JRiver Media Center from the official JRiver repository (Ubuntu/Debian) or my [unofficial repository]( (Fedora/CentOS) using the system package manager (`--install repo`). If any other option is specified, then the default install method (i.e. `--install repo` or `--install local`) will need to be explicitly specified. This makes it possible to install services and containers independent of MC.
-**Note**: `installJRMC` does not perform library migrations. Before moving to a new major version (i.e. v28->v29), you should first [perform a library backup](, install the new major version, and then [restore the library](
+**Note**: As of 1.0b14 major version library migrations are performed if the destination config directory `$HOME/.jriver/Media Center XX` is missing for major release `XX`. However, it is still a good idea to create a manual library backup before migrating major versions.
 ## Options

+ 2 - 1

@@ -18,7 +18,7 @@
 shopt -s extglob
-declare -g SCRIPTVERSION="1.0b13"
+declare -g SCRIPTVERSION="1.0b14"
 declare -g OUTPUTDIR="$PWD/output"
 declare -g CREATEREPO_WEBROOT="/var/www/jriver"
 declare -g USER="${SUDO_USER:-$USER}"
@@ -1384,6 +1384,7 @@ disableCoW() {
     declare mc_user_path="$HOME/.jriver"
     for dir in "$mc_system_path" "$mc_user_path"; do
+        ! [[ -d "$dir" ]] && return
         if [[ $(stat -f -c %T "$dir") == "btrfs" ]] &&
         ! lsattr -d "$dir" | cut -f1 -d" " | grep -q C; then
             echo "Disabling CoW for $dir"