Skip to content

Commit

Permalink
bump: update to v0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybarreto committed Nov 5, 2024
1 parent 111c1d1 commit f254ddf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shellhub/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= shellhub
DISTVERSIONPREFIX= v
DISTVERSION= 0.17.0
DISTVERSION= 0.17.1
DISTVERSIONSUFFIX=
CATEGORIES= sysutils
MASTER_SITES= https://github.com/shellhub-io/shellhub/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}/
Expand Down
6 changes: 3 additions & 3 deletions shellhub/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1730230645
SHA256 (shellhub-agent0.17.0/shellhub-agent.tar.gz) = 48f5c00e1712216a33177ea5f091ce3a48f07d3f3ee8f37472b92c43053907a6
SIZE (shellhub-agent0.17.0/shellhub-agent.tar.gz) = 4305507
TIMESTAMP = 1730837806
SHA256 (shellhub-agent0.17.1/shellhub-agent.tar.gz) = 858d16d5f1c8ccc22739b54637cb22a8a0f94850c6f7f2b678631d291a84ea16
SIZE (shellhub-agent0.17.1/shellhub-agent.tar.gz) = 4308010
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- vendor/github.com/shellhub-io/shellhub/pkg/agent/server/modes/host/utils_freebsd.go.orig 2024-11-05 21:16:27 UTC
+++ vendor/github.com/shellhub-io/shellhub/pkg/agent/server/modes/host/utils_freebsd.go
@@ -6,11 +6,15 @@ import (
"os"
"os/exec"

+ gliderssh "github.com/gliderlabs/ssh"
"github.com/shellhub-io/shellhub/pkg/agent/pkg/osauth"
"github.com/shellhub-io/shellhub/pkg/agent/server/modes/host/command"
)

-func newShellCmd(deviceName string, username string, term string, envs []string) *exec.Cmd {
+func generateShellCmd(deviceName string, session gliderssh.Session, term string) *exec.Cmd {
+ username := session.User()
+ envs := session.Environ()
+
shell := os.Getenv("SHELL")

user, err := osauth.LookupUser(username)

0 comments on commit f254ddf

Please sign in to comment.