engine: resources: Add log messages for chmod and chown
This commit is contained in:
@@ -1186,6 +1186,7 @@ func (obj *FileRes) chownCheckApply(ctx context.Context, apply bool) (bool, erro
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obj.init.Logf("chown %s:%s %s", obj.Owner, obj.Group, obj.getPath())
|
||||||
return false, os.Chown(obj.getPath(), expectedUID, expectedGID)
|
return false, os.Chown(obj.getPath(), expectedUID, expectedGID)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1220,6 +1221,7 @@ func (obj *FileRes) chmodCheckApply(ctx context.Context, apply bool) (bool, erro
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obj.init.Logf("chmod %s %s", obj.Mode, obj.getPath())
|
||||||
return false, os.Chmod(obj.getPath(), mode)
|
return false, os.Chmod(obj.getPath(), mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user