mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Use /bin/sh and set -e uniformly in maintainer scripts.
Signed-off-by: Wido den Hollander <wido@widodh.nl>
This commit is contained in:
parent
6ce9729580
commit
71b42e266f
2
debian/cloudstack-agent.postinst
vendored
2
debian/cloudstack-agent.postinst
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
5
debian/cloudstack-management.postinst
vendored
5
debian/cloudstack-management.postinst
vendored
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
@ -16,6 +17,8 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$1" = configure ]; then
|
if [ "$1" = configure ]; then
|
||||||
if ! getent passwd cloud >/dev/null; then
|
if ! getent passwd cloud >/dev/null; then
|
||||||
adduser --quiet --system --group --no-create-home --home /var/lib/cloudstack/management cloud
|
adduser --quiet --system --group --no-create-home --home /var/lib/cloudstack/management cloud
|
||||||
|
|||||||
2
debian/cloudstack-usage.postinst
vendored
2
debian/cloudstack-usage.postinst
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user