projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Note that Get*Tagging APIs are not supported.
[arvados.git]
/
build
/
go-python-package-scripts
/
postinst
diff --git
a/build/go-python-package-scripts/postinst
b/build/go-python-package-scripts/postinst
index 095872fe247379b18640898e6d1313ca70e52288..ab2568ab9b8f940a07aa83e86ad7b45ba6501ab1 100755
(executable)
--- a/
build/go-python-package-scripts/postinst
+++ b/
build/go-python-package-scripts/postinst
@@
-3,11
+3,11
@@
#
# SPDX-License-Identifier: AGPL-3.0
#
# SPDX-License-Identifier: AGPL-3.0
+set -e
+
# Detect rpm-based systems: the exit code of the following command is zero
# on rpm-based systems
# Detect rpm-based systems: the exit code of the following command is zero
# on rpm-based systems
-/usr/bin/rpm -q -f /usr/bin/rpm >/dev/null 2>&1
-
-if [ "$?" = "0" ]; then
+if /usr/bin/rpm -q -f /usr/bin/rpm >/dev/null 2>&1; then
# Red Hat ("%{...}" is interpolated at package build time)
pkg="%{name}"
pkgtype=rpm
# Red Hat ("%{...}" is interpolated at package build time)
pkg="%{name}"
pkgtype=rpm
@@
-20,7
+20,6
@@
else
prefix=/usr
fi
prefix=/usr
fi
-set -e
case "${pkgtype}-${1}" in
deb-configure | rpm-1)
dest_dir="/lib/systemd/system"
case "${pkgtype}-${1}" in
deb-configure | rpm-1)
dest_dir="/lib/systemd/system"