Use /bin/sh and set -e uniformly in maintainer scripts.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
This commit is contained in:
Felix Geyer 2015-02-16 14:05:15 +01:00 committed by Wido den Hollander
parent 6ce9729580
commit 71b42e266f
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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