diff options
| -rw-r--r-- | doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment new file mode 100644 index 00000000..b898b822 --- /dev/null +++ b/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2018-01-08T18:33:06Z" + content=""" +Since propellor can run multiple properties at the same time +(Propellor.Property.Concurrent), setting the CWD while running a property +is probably not a good idea, as it would affect any other property that's +currently running. Might be possible to fork and set CWD, +but haskell is not great at supporting fork w/o exec. + +Instead, the best way to do it is to use `createProcess` with +`{cwd = whatever}` when your property runs apt and dpkg-reconfigure. +See Property.DnsSec.forceZoneSigned for an example. +"""]] |
