Resolve KASM-5509 "Feature/ no staticx for squid adapter"

This commit is contained in:
Ryan Kuba 2024-01-30 17:47:26 +00:00 committed by Justin Travis
parent 3167d67d35
commit 5a4020bd22
2 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,8 @@ files: &UNIVERSAL_CHANGE_FILES
- src/ubuntu/install/printer/**
- src/ubuntu/install/profile_sync/**
- src/ubuntu/install/squid/**
- src/ubuntu/install/squid/install/**
- src/ubuntu/install/squid/resources/**
- src/ubuntu/install/tools/**
- src/ubuntu/install/webcam/**
- src/ubuntu/install/recorder/**

View File

@ -90,11 +90,16 @@ sasldb_path: /etc/sasl2/memcached-sasldb2
EOL
COMMIT_ID="1879ba54bb5ce515d3ac9f55675ba5fc984798d0"
COMMIT_ID="f8a1049969e7bde2fa0814eb3e5e09f4359efca1"
BRANCH="develop"
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
wget -qO- https://kasmweb-build-artifacts.s3.amazonaws.com/kasm_squid_adapter/${COMMIT_ID}/kasm_squid_adapter_${ARCH}_${BRANCH}.${COMMIT_ID_SHORT}.tar.gz | tar xz -C /etc/squid/
if [[ "${DISTRO}" == "alpine" ]]; then
wget -qO- https://kasmweb-build-artifacts.s3.amazonaws.com/kasm_squid_adapter/${COMMIT_ID}/kasm_squid_adapter_alpine_${ARCH}_${BRANCH}.${COMMIT_ID_SHORT}.tar.gz | tar xz -C /etc/squid/
else
wget -qO- https://kasmweb-build-artifacts.s3.amazonaws.com/kasm_squid_adapter/${COMMIT_ID}/kasm_squid_adapter_glibc_${ARCH}_${BRANCH}.${COMMIT_ID_SHORT}.tar.gz | tar xz -C /etc/squid/
fi
echo "${BRANCH}:${COMMIT_ID}" > /etc/squid/kasm_squid_adapter.version
ls -la /etc/squid
chmod +x /etc/squid/kasm_squid_adapter