Forum: CFEngine Help Subject: Error creating a directory (use forcedirs=true) Author: bmarsh Link to topic: https://cfengine.com/forum/read.php?3,24130,24130#msg-24130
I was attempting to create a homedir and then a .ssh direcctory, but I goofed up and made a file instead of a directory. files: any:: "/home/rsync" perms => mog("700","rsync","rsync"), comment => "Make rsync homedir", forcedirs => "true", create => "true"; "/home/rsync/.ssh/" perms => mog("700","rsync","rsync"), comment => "Make .ssh for rsync", create => "true"; When I fixed things by adding the final / to the paths, I got this error: cf-agent -K Cannot make /home/rsync/.ssh - /home/rsync is not a directory! (use forcedirs=true) So I tried forcedirs: # cf-agent -K cf3> /var/cfengine/inputs/linux_q.cf:10,23: Constraint lvalue 'forcedirs' is not allowed in bundle category 'files', near token 'true"' I don't find anything in cfengine 3 about forcedirs (but I'm still getting used to the new docs.) I did find move_obstructions in files. Am I searching wrong? Or or is this a confusing error message? Thanks, Bill _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine