Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit f24957c

Browse files
author
icymind
committed
fix bug: ssr-redir/ssr-tunnel doesnot have x permision
1 parent 49c2c4a commit f24957c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

js/vrouter-local.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,7 @@ class VRouter {
16301630
await this.scp(`${thirdParty}/ssr-tunnel`, '/usr/bin/')
16311631
await this.scp(`${thirdParty}/ssr-redir`, '/usr/bin/')
16321632
const remote = await this.connect()
1633+
await this.remoteExec('chmod +x /usr/bin/ssr-*')
16331634
await remote.remoteExec('opkg update && opkg install libopenssl')
16341635
await remote.service('shadowsocks', 'stop').catch(() => {})
16351636
await remote.service('kcptun', 'stop').catch(() => {})

js/vrouter-remote.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class VRouterRemote {
9292
return this.remoteExec(cmd)
9393
}
9494
installSsr () {
95-
const cmd = `mv ${this.config.vrouter.configDir}/third_party/ssr-* /usr/bin/`
95+
const cmd = `mv ${this.config.vrouter.configDir}/third_party/ssr-* /usr/bin/ && chmod +x /usr/bin/ssr-*`
9696
return this.remoteExec(cmd)
9797
}
9898
getSsVersion () {
@@ -160,7 +160,7 @@ class VRouterRemote {
160160
installKt () {
161161
// const cmd = `tar -xvzf ${this.config.vrouter.configDir}/third_party/kcptun*.tar.gz ` +
162162
// ` && rm server_linux_* && mv client_linux* /usr/bin/kcptun`
163-
const cmd = `mv ${this.config.vrouter.configDir}/third_party/kcptun /usr/bin/`
163+
const cmd = `mv ${this.config.vrouter.configDir}/third_party/kcptun /usr/bin/ && chmod +x /usr/bin/kcptun`
164164
return this.remoteExec(cmd)
165165
}
166166
getKtVersion () {

0 commit comments

Comments
 (0)