forked from VolumetricBio/LightField
-
Notifications
You must be signed in to change notification settings - Fork 1
/
unpack-kit-manually.sh
executable file
·32 lines (24 loc) · 1 KB
/
unpack-kit-manually.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
VERSION=1.0.11.0
PACKAGE_BUILD_ROOT="${PWD}/packaging"
#########################################################
## ##
## No user-serviceable parts below this point. ##
## ##
#########################################################
if [ "${UID}" != "0" ]
then
echo This script must be run as root.
exit 1
fi
UPDATES_DIR=/var/lib/lightfield/software-updates
rm -v -dr "${UPDATES_DIR}"
mkdir -v -p "${UPDATES_DIR}"
dir="lightfield-debug_${VERSION}_amd64"
updatedir="${UPDATES_DIR}/${dir}"
rm -v -fr "${updatedir}"
mkdir -v "${updatedir}"
tar -vv -C "${updatedir}" -xf "${PACKAGE_BUILD_ROOT}/${VERSION}/kit/${dir}.kit"
chown -c -R lumen:lumen "${UPDATES_DIR}"
echo "deb file:/var/lib/lightfield/software-updates/lightfield-debug_${VERSION}_amd64 ./" > /etc/apt/sources.list.d/volumetric-lightfield.list
chown -c lumen:lumen /etc/apt/sources.list.d/volumetric-lightfield.list