Revize 36d16c7a
Přidáno uživatelem Ondřej Fibich před téměř 7 roky(ů)
test/install.sh | ||
---|---|---|
|
||
set -e
|
||
|
||
if [ $# -ne 1 ]; then
|
||
if [ $# -lt 1 ]; then
|
||
echo "usage: $0 DEB"
|
||
exit 2
|
||
fi
|
||
... | ... | |
|
||
echo "Install deb package"
|
||
apt-get update -q
|
||
if apt --version >/dev/null 1>&2; then
|
||
apt install -q -y "$DEB"
|
||
else
|
||
if [ "$2" == "old" ]; then
|
||
echo "Old style installation"
|
||
dpkg -i "$DEB" || apt-get install -q -y -f
|
||
else
|
||
apt install -q -y "$DEB"
|
||
fi
|
||
|
||
echo "Daemon test"
|
Také k dispozici: Unified diff
Fix building on Jessie (Jessie comes with apt uncapable to install DEB directly)