Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Improve the token generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dhollinger committed Mar 9, 2020
1 parent 5694783 commit 1e99448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion build/vanagon/components/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
'cp Rakefile /opt/voxpupuli/webhook/',
'cp ../postinst.sh /opt/voxpupuli/webhook/bin/',
'cp ../generate_token /opt/voxpupuli/webhook/bin/',
'ln -s /opt/voxpupuli/webhook/bin/generate_token /usr/local/bin/generate_token',
'cp /opt/voxpupuli/webhook/config/config.yml.example /etc/voxpupuli/webhook.yaml',
"echo 'App installed'"
]
Expand Down
4 changes: 3 additions & 1 deletion resources/generate_token
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ echo "This command will generate an API token for use with Puppet Webhook and wi

read -p "are you sure? (y/N)" -n 1 -r

echo

if [[ $REPLY =~ ^[Yy]$ ]]
then
export SINATRA_EN=production
export SINATRA_ENV=production
export RUBYLIB=/opt/voxpupuli/webhook/lib/ruby:/opt/voxpupuli/webhook:/opt/voxpupuli/webhook/app/models
export GEM_HOME=/opt/voxpupuli/webhook/lib/ruby/gems/2.6.0
export GEM_PATH=$GEM_HOME
Expand Down

0 comments on commit 1e99448

Please sign in to comment.