Skip to content

Commit

Permalink
feat(snap): add support for preferred hostname configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosbarreto committed Dec 3, 2024
1 parent 48dc16b commit f0b470d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions snap/hooks/install
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
snapctl set server-address=https://cloud.shellhub.io
snapctl set tenant-id=
snapctl set private-key=/etc/shellhub.key
snapctl set preferred-hostname=
1 change: 1 addition & 0 deletions snap/local/bin/shellhub.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
export SERVER_ADDRESS=$(snapctl get server-address)
export TENANT_ID=$(snapctl get tenant-id)
export PRIVATE_KEY=$(snapctl get private-key)
export PREFERRED_HOSTNAME=$(snapctl get preferred-hostname)

exec $SNAP/bin/shellhub "$@"

0 comments on commit f0b470d

Please sign in to comment.