Skip to content

Commit 71e0944

Browse files
committed
Little packaged-Linux fixes for OSKR/dev bot setup
1 parent 2f9dc63 commit 71e0944

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

chipper/pkg/vars/vars.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ var VarsInited bool
2222
// if compiled into an installation package. wire-pod will use os.UserConfigDir()
2323
var Packaged bool
2424

25+
var IsPackagedLinux bool
26+
2527
var AndroidPath string
2628

2729
var (

chipper/pkg/wirepod/setup/ssh.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func SetupBotViaSSH(ip string, key []byte) error {
5151
if runtime.GOOS == "android" || runtime.GOOS == "ios" {
5252
SetupScriptPath = vars.AndroidPath + "/static/pod-bot-install.sh"
5353
}
54+
if vars.IsPackagedLinux {
55+
SetupScriptPath = "./pod-bot-install.sh"
56+
}
5457
if !SSHSettingUp {
5558
logger.Println("Setting up " + ip + " via SSH")
5659
SetupSSHStatus = "Setting up SSH connection..."

0 commit comments

Comments
 (0)