This is an automated email from the ASF dual-hosted git repository. paul_a pushed a commit to branch remove_dump_snapshot in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 7a8d6bf8a71bc9c746e21b6ef5f8a98317220819 Author: Paul Angus <paul.an...@shapeblue.com> AuthorDate: Sun Dec 23 09:28:13 2018 +0000 get nesting right --- systemvm/debian/opt/cloud/bin/setup/postinit.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/systemvm/debian/opt/cloud/bin/setup/postinit.sh b/systemvm/debian/opt/cloud/bin/setup/postinit.sh index 668199b..4eb2177 100755 --- a/systemvm/debian/opt/cloud/bin/setup/postinit.sh +++ b/systemvm/debian/opt/cloud/bin/setup/postinit.sh @@ -36,12 +36,13 @@ fi [ ! -f /var/cache/cloud/enabled_svcs ] && touch /var/cache/cloud/enabled_svcs for svc in $(cat /var/cache/cloud/enabled_svcs) -if [[ "$svc" != "cloud" ]] -then do - systemctl start --no-block $svc - done -fi + if [[ "$svc" != "cloud" ]] + then + systemctl start --no-block $svc + fi +done + #not required - all services disabled by default #[ ! -f /var/cache/cloud/disabled_svcs ] && touch /var/cache/cloud/disabled_svcs @@ -71,9 +72,9 @@ date > /var/cache/cloud/boot_up_done # explicitly start cloud service for svc in $(cat /var/cache/cloud/enabled_svcs) -if [[ "$svc" == "cloud" ]] -then - do +do + if [[ "$svc" == "cloud" ]] + then systemctl start --no-block $svc - done -fi + fi +done