Skip to content

Commit

Permalink
feat: cleans up deb installation a bit moving files to more sensible …
Browse files Browse the repository at this point in the history
…places for hashbash
  • Loading branch information
norwoodj committed Oct 11, 2021
1 parent b9a1dcb commit e71a001
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 35 deletions.
3 changes: 1 addition & 2 deletions debian/dirs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
opt/hashbash/logs
opt/hashbash/sockets
etc/hashbash
6 changes: 2 additions & 4 deletions debian/hashbash-backend.hashbash-engine.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ Description=hashbash engine service
Requires=hashbash-engine-management.socket

[Service]
ExecStart=/opt/hashbash/bin/hashbash-engine
ExecStart=/usr/bin/hashbash-engine
Restart=always
KillSignal=SIGQUIT
Type=simple
StandardError=syslog
StandardOutput=/opt/hashbash/logs/engine.log
NotifyAccess=all
EnvironmentFile=/opt/hashbash/hashbash.env
EnvironmentFile=/opt/secrets/hashbash/hashbash.env
Environment=HASHBASH_MANAGEMENT_NAME=hashbash-engine-management
Sockets=hashbash-engine-management.socket
User=hashbash
Expand Down
5 changes: 2 additions & 3 deletions debian/hashbash-backend.hashbash-webapp.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ Requires=hashbash-webapp.socket
Requires=hashbash-webapp-management.socket

[Service]
ExecStart=/opt/hashbash/bin/hashbash-webapp
ExecStart=/usr/bin/hashbash-webapp
Restart=always
KillSignal=SIGQUIT
Type=simple
StandardError=syslog
NotifyAccess=all
EnvironmentFile=/opt/hashbash/hashbash.env
EnvironmentFile=/opt/secrets/hashbash/hashbash.env
Environment=HASHBASH_HTTP_NAME=hashbash-webapp
Environment=HASHBASH_MANAGEMENT_NAME=hashbash-webapp-management
Sockets=hashbash-webapp.socket
Expand Down
3 changes: 2 additions & 1 deletion debian/hashbash-backend.hashbash-webapp.socket
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ Description=hashbash webapp listen socket
PartOf=hashbash-webapp.service

[Socket]
ListenStream=/opt/hashbash/sockets/hashbash-webapp.sock
ListenStream=/run/hashbash/webapp.sock
FileDescriptorName=hashbash-webapp
Service=hashbash-webapp.service
SocketUser=hashbash
SocketGroup=hashbash

Expand Down
19 changes: 0 additions & 19 deletions debian/hashbash-backend.logrotate

This file was deleted.

9 changes: 4 additions & 5 deletions debian/install
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
frontend /opt/hashbash
hashbash.env /opt/hashbash
hashbash-cli /opt/hashbash/bin
hashbash-engine /opt/hashbash/bin
hashbash-webapp /opt/hashbash/bin
frontend /etc/hashbash
hashbash-cli /usr/bin
hashbash-engine /usr/bin
hashbash-webapp /usr/bin
2 changes: 1 addition & 1 deletion hashbash.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
HASHBASH_DATABASE_HOST=0p0
HASHBASH_DATABASE_USERNAME=hashbash-rw
HASHBASH_FRONTEND_TEMPLATE_PATH=/opt/hashbash/frontend
HASHBASH_FRONTEND_TEMPLATE_PATH=/etc/hashbash/frontend
HASHBASH_GENERATE_NUM_THREADS=4
HASHBASH_RABBITMQ_HOST=0p0
HASHBASH_RABBITMQ_USERNAME=hashbash-rw
Expand Down

0 comments on commit e71a001

Please sign in to comment.