diff --git a/service/profile/profile.go b/service/profile/profile.go index 85bc3014b..8861a82cb 100644 --- a/service/profile/profile.go +++ b/service/profile/profile.go @@ -141,7 +141,7 @@ func (p *Profile) writeBlock() (pth string, err error) { pth = filepath.Join(rootDir, p.Id+"-block.sh") - err = ioutil.WriteFile(pth, []byte(""), os.FileMode(0755)) + err = ioutil.WriteFile(pth, []byte(blockScript), os.FileMode(0755)) if err != nil { err = &WriteError{ errors.Wrap(err, "profile: Failed to write block script"),