diff --git a/debian/cloudstack-agent.postinst b/debian/cloudstack-agent.postinst index 2a938ad2a9a..9cb178d4f12 100644 --- a/debian/cloudstack-agent.postinst +++ b/debian/cloudstack-agent.postinst @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/debian/cloudstack-management.postinst b/debian/cloudstack-management.postinst index 2a16bc49653..0dbeca9fd49 100644 --- a/debian/cloudstack-management.postinst +++ b/debian/cloudstack-management.postinst @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh + # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,6 +17,8 @@ # specific language governing permissions and limitations # under the License. +set -e + if [ "$1" = configure ]; then if ! getent passwd cloud >/dev/null; then adduser --quiet --system --group --no-create-home --home /var/lib/cloudstack/management cloud diff --git a/debian/cloudstack-usage.postinst b/debian/cloudstack-usage.postinst index 9452d397e4c..95297119d2c 100644 --- a/debian/cloudstack-usage.postinst +++ b/debian/cloudstack-usage.postinst @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file