Skip to content

Commit

Permalink
Merge pull request #70 from cisagov/bugfix/only-use-first-api-key
Browse files Browse the repository at this point in the history
Only use first API key output from get-api-key
  • Loading branch information
dav3r authored Jan 26, 2022
2 parents b0fff16 + dd8c939 commit 72cec18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pca-gophish-composition.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ExecStart=/usr/bin/docker-compose -f /var/pca/pca-gophish-composition/docker-com
# Stop composition when unit is stopped
ExecStop=/usr/bin/docker-compose -f /var/pca/pca-gophish-composition/docker-compose.yml -f /var/pca/pca-gophish-composition/docker-compose.production.yml down
# Run gophish-init script after gophish service starts up in composition
ExecStartPost=/bin/sh -c "cd /var/pca/pca-gophish-composition && while ! (/usr/bin/docker-compose logs gophish | /bin/grep 'Starting admin server' > /dev/null); do sleep 1; /bin/echo 'Waiting for gophish startup...'; done && /usr/bin/docker-compose exec -T gophish get-api-key | /usr/bin/xargs /usr/local/bin/gophish-init"
ExecStartPost=/bin/sh -c "cd /var/pca/pca-gophish-composition && while ! (/usr/bin/docker-compose logs gophish | /bin/grep 'Starting admin server' > /dev/null); do sleep 1; /bin/echo 'Waiting for gophish startup...'; done && /usr/bin/docker-compose exec -T gophish get-api-key | head -1 | /usr/bin/xargs /usr/local/bin/gophish-init"

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.5"
__version__ = "0.4.6"

0 comments on commit 72cec18

Please sign in to comment.