Skip to content

Commit

Permalink
Write hal executable from postInstall directly (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander committed Feb 2, 2017
1 parent cb8e808 commit 5ced41d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions halyard-web/etc/halyard/hal

This file was deleted.

6 changes: 5 additions & 1 deletion halyard-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ if [ -z `getent passwd spinnaker` ]; then
useradd --gid spinnaker spinnaker -m --home-dir /home/spinnaker
fi

cp /etc/halyard/hal /usr/local/bin

sudo echo '#!/usr/bin/env bash' > sudo /usr/local/bin/hal
sudo echo '/opt/halyard/bin/hal "$@"' >> sudo /usr/local/bin/hal

chmod +x /usr/local/bin/hal

install --mode=755 --owner=spinnaker --group=spinnaker --directory /var/log/spinnaker/halyard

0 comments on commit 5ced41d

Please sign in to comment.