forked from OpenLI-NZ/openli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debpkg-setup.sh
executable file
·36 lines (25 loc) · 1.02 KB
/
debpkg-setup.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
33
34
35
36
#!/bin/bash
set -x -e -o pipefail
export DEBEMAIL='[email protected]'
export DEBFULLNAME='Shane Alcock'
export DEBIAN_FRONTEND=noninteractive
export SOURCENAME=`echo ${GITHUB_REF##*/} | cut -d '-' -f 1`
apt-get update
apt-get install -y equivs devscripts dpkg-dev quilt curl apt-transport-https \
apt-utils ssl-cert ca-certificates gnupg lsb-release debhelper git \
pkg-config sed
DISTRO=$(lsb_release -sc)
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | bash
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandder/cfg/setup/bash.deb.sh' | bash
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libtrace/cfg/setup/bash.deb.sh' | bash
curl -1sLf 'https://dl.cloudsmith.io/public/wand/openli/cfg/setup/bash.deb.sh' | bash
case ${DISTRO} in
bullseye | bookworm )
sed -i 's/ dh-systemd (>=1.5),//' debian/control
;;
jammy | noble )
sed -i 's/ dh-systemd (>=1.5),//' debian/control
;;
esac
apt-get update
apt-get upgrade -y