mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-30 20:14:12 +01:00
Merge branch 'feature/KASM-5616-blender-mirror' into 'develop'
KASM-5616 update blender mirror Closes KASM-5616 See merge request kasm-technologies/internal/workspaces-images!173
This commit is contained in:
commit
1d3e022378
@ -17,14 +17,14 @@ ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so
|
|||||||
mkdir /blender
|
mkdir /blender
|
||||||
if [ -z ${BLENDER_VERSION+x} ]
|
if [ -z ${BLENDER_VERSION+x} ]
|
||||||
then
|
then
|
||||||
BLENDER_VERSION=$(curl -sL https://mirror.clarkson.edu/blender/source/ \
|
BLENDER_VERSION=$(curl -sL https://mirrors.iu13.net/blender/source/ \
|
||||||
| awk -F'"|/"' '/blender-[0-9]*\.[0-9]*\.[0-9]*\.tar\.xz/ && !/md5sum/ {print $2}' \
|
| awk -F'"|/"' '/blender-[0-9]*\.[0-9]*\.[0-9]*\.tar\.xz/ && !/md5sum/ {print $8}' \
|
||||||
| tail -1 \
|
| tail -1 \
|
||||||
| sed 's|blender-||' \
|
| sed 's|blender-||' \
|
||||||
| sed 's|\.tar\.xz||')
|
| sed 's|\.tar\.xz||');
|
||||||
fi
|
fi
|
||||||
BLENDER_FOLDER=$(echo "Blender${BLENDER_VERSION}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
|
BLENDER_FOLDER=$(echo "Blender${BLENDER_VERSION}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|')
|
||||||
curl -o /tmp/blender.tar.xz -L "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${BLENDER_VERSION}-linux-x64.tar.xz"
|
curl -o /tmp/blender.tar.xz -L "https://mirrors.iu13.net/blender/release/${BLENDER_FOLDER}/blender-${BLENDER_VERSION}-linux-x64.tar.xz"
|
||||||
tar xf /tmp/blender.tar.xz -C /blender/ --strip-components=1
|
tar xf /tmp/blender.tar.xz -C /blender/ --strip-components=1
|
||||||
|
|
||||||
cat >/usr/bin/blender <<EOF
|
cat >/usr/bin/blender <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user