]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [Debian] update-zfs.sh: Allow environment variable overrides
authorTim Gardner <tim.gardner@canonical.com>
Wed, 28 Oct 2015 14:39:16 +0000 (08:39 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
debian/scripts/misc/update-zfs.sh

index c8dbc7691b89a133640b6a7eb04a1e8446d1bcd6..01929eecf0cff693b54762f2af627434afec82f9 100755 (executable)
@@ -3,13 +3,13 @@
 # Update spl/zfs from the Ubuntu archive. You will have to manually check
 # to see if the version has been updated.
 #
-SPL_MAJOR_VER=0.6.4.2
-SPL_MINOR_VER=0ubuntu1
-SPL_DKMS=http://archive.ubuntu.com/ubuntu/pool/universe/s/spl-linux/spl-dkms_${SPL_MAJOR_VER}-${SPL_MINOR_VER}_amd64.deb
+SPL_MAJOR_VER=${_SPL_MAJOR_VER:-0.6.4.2}
+SPL_MINOR_VER=${_SPL_MINOR_VER:-0ubuntu1}
+SPL_DKMS=${_SPL_DKMS:-http://archive.ubuntu.com/ubuntu/pool/universe/s/spl-linux/spl-dkms_${SPL_MAJOR_VER}-${SPL_MINOR_VER}_amd64.deb}
 
-ZFS_MAJOR_VER=0.6.4.2
-ZFS_MINOR_VER=0ubuntu1
-ZFS_DKMS=http://archive.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms_${ZFS_MAJOR_VER}-${ZFS_MINOR_VER}_amd64.deb
+ZFS_MAJOR_VER=${_ZFS_MAJOR_VER:-0.6.4.2}
+ZFS_MINOR_VER=${_ZFS_MINOR_VER:-0ubuntu1}
+ZFS_DKMS=${_ZFS_DKMS:-http://archive.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms_${ZFS_MAJOR_VER}-${ZFS_MINOR_VER}_amd64.deb}
 
 function update_from_archive {