This repository was archived by the owner on Nov 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ( ( ) => { } )
Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments