Compare commits
	
		
			2 Commits
		
	
	
		
			8b6479dc95
			...
			693e61d7d4
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 693e61d7d4 | |||
| 258623ae44 | 
| @ -6,6 +6,7 @@ import ( | |||||||
| 	"io/ioutil" | 	"io/ioutil" | ||||||
| 	"log" | 	"log" | ||||||
| 	"os" | 	"os" | ||||||
|  | 	"os/exec" | ||||||
| 	"path/filepath" | 	"path/filepath" | ||||||
| 	"strings" | 	"strings" | ||||||
| 
 | 
 | ||||||
| @ -288,6 +289,13 @@ func installServiceman(c *service.Service) ([]string, error) { | |||||||
| 		if nil != err { | 		if nil != err { | ||||||
| 			return nil, err | 			return nil, err | ||||||
| 		} | 		} | ||||||
|  | 		// Note: self may be the short name, in which case | ||||||
|  | 		// we should just use whatever is closest in the path | ||||||
|  | 		// exec.LookPath will handle this correctly | ||||||
|  | 		self, err = exec.LookPath(self) | ||||||
|  | 		if nil != err { | ||||||
|  | 			return nil, err | ||||||
|  | 		} | ||||||
| 		bin, err := ioutil.ReadFile(self) | 		bin, err := ioutil.ReadFile(self) | ||||||
| 		if nil != err { | 		if nil != err { | ||||||
| 			return nil, err | 			return nil, err | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| // Code generated by fileb0x at "2019-08-05 10:04:21.752835 -0600 MDT m=+0.004628888" from config file "b0x.toml" DO NOT EDIT. | // Code generated by fileb0x at "2019-08-05 10:09:44.205977 -0600 MDT m=+0.003863161" from config file "b0x.toml" DO NOT EDIT. | ||||||
| // modification hash(e0dad2aef9534d24be436f8d9dd5e9cc.acdb557394f98d3c09c0bb4d4b9142f8) | // modification hash(25df1985b6a67dc5b8f5c9281219965c.acdb557394f98d3c09c0bb4d4b9142f8) | ||||||
| 
 | 
 | ||||||
| package static | package static | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user