Skip to content

Commit 71b42e2

Browse files
cd-fgewido
authored andcommitted
Use /bin/sh and set -e uniformly in maintainer scripts.
Signed-off-by: Wido den Hollander <wido@widodh.nl>
1 parent 6ce9729 commit 71b42e2

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

debian/cloudstack-agent.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# Licensed to the Apache Software Foundation (ASF) under one
44
# or more contributor license agreements. See the NOTICE file

debian/cloudstack-management.postinst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/sh -e
1+
#!/bin/sh
2+
23
# Licensed to the Apache Software Foundation (ASF) under one
34
# or more contributor license agreements. See the NOTICE file
45
# distributed with this work for additional information
@@ -16,6 +17,8 @@
1617
# specific language governing permissions and limitations
1718
# under the License.
1819

20+
set -e
21+
1922
if [ "$1" = configure ]; then
2023
if ! getent passwd cloud >/dev/null; then
2124
adduser --quiet --system --group --no-create-home --home /var/lib/cloudstack/management cloud

debian/cloudstack-usage.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# Licensed to the Apache Software Foundation (ASF) under one
44
# or more contributor license agreements. See the NOTICE file

0 commit comments

Comments
 (0)