mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-25 04:30:28 +00:00
Remove trailing spaces in file xCAT-buildkit/share/xcat/kits/kit_build/chef/chef-x86_64/scripts/client.post
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh
|
||||
# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#=head1 client.post
|
||||
#=head2 This command configures the chef client on a xCAT node. It is used
|
||||
#=head2 This command configures the chef client on a xCAT node. It is used
|
||||
# as a postbootscript for chef_client kit
|
||||
#=cut
|
||||
#-------------------------------------------------------------------------------
|
||||
if [ "$NODESETSTATE" = "install" ]; then
|
||||
#prevent getting called during full install bootup
|
||||
if [ "$NODESETSTATE" = "install" ]; then
|
||||
#prevent getting called during full install bootup
|
||||
#because the function will be called in the rpm %post section instead
|
||||
exit 0
|
||||
else
|
||||
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
|
||||
#configure the chef client configuration files
|
||||
/xcatpost/config_chef_client "$@"
|
||||
/xcatpost/config_chef_client "$@"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user