custom metric 추가
This commit is contained in:
@ -242,7 +242,7 @@ func (hc *houstonClient) makeDownloadUrl(rel string) string {
|
||||
return out
|
||||
}
|
||||
|
||||
func copy(src, dst string) error {
|
||||
func copyfile(src, dst string) error {
|
||||
fi, err := os.Stat(src)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -311,7 +311,7 @@ func (hc *houstonClient) prepareUpdateSelf(req *shared.DeployRequest) (srcdir st
|
||||
selfname, _ := os.Executable()
|
||||
srcreplacer := path.Join(path.Dir(fname), "replacer") + path.Ext(selfname)
|
||||
replacer = "./" + filepath.ToSlash("replacer"+path.Ext(selfname))
|
||||
err = copy(srcreplacer, replacer)
|
||||
err = copyfile(srcreplacer, replacer)
|
||||
if err == nil {
|
||||
err = os.Chmod(replacer, 0775)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user