Skip to content

Commit 8aff23a

Browse files
authored
Update unRAID6-ZFS.plg
1 parent 2344a28 commit 8aff23a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unRAID6-ZFS.plg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ fi
485485
KERNEL_V="$(uname -r)"
486486
PACKAGE="zfs"
487487
DL_URL="https://github.com/Steini1984/unRAID6-ZFS/releases/download/$KERNEL_V"
488-
UPDATE_CHECK="$(cat &plugin;/settings.cfg | grep "check_for_updates" | cut -d '=' -f2)"
489-
UNSTABLE_BUILDS="$(cat &plugin;/settings.cfg | grep "unstable_packages" | cut -d '=' -f2)"
490488

491489
# Create packages directory if non existent
492490
if [ ! -d "&packages;/${KERNEL_V%%-*}" ]; then
@@ -505,6 +503,10 @@ if [ ! "$(grep "unclean_shutdown_scrub=" &plugin;/settings.cfg)" ]; then
505503
echo "unclean_shutdown_scrub=true" >> &plugin;/settings.cfg
506504
fi
507505

506+
# Get variables for update check and unstable builds
507+
UPDATE_CHECK="$(cat &plugin;/settings.cfg | grep "check_for_updates" | cut -d '=' -f2)"
508+
UNSTABLE_BUILDS="$(cat &plugin;/settings.cfg | grep "unstable_packages" | cut -d '=' -f2)"
509+
508510
# Move old package directory to new package directory to be compliant with 6.11
509511
if find &packages; -maxdepth 1 -type f -name "*.tgz" 2>/dev/null ; then
510512
if [ ! -d "&packages;/${KERNEL_V%%-*}" ]; then

0 commit comments

Comments
 (0)