From 5de7708f15a241bbbd8460e00e9262e8ee7ad9f6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 8 Jan 2018 14:38:59 -0400 Subject: response --- .../comment_1_00e636c4ec122361213f0e1062569704._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment (limited to 'doc') 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. +"""]] -- cgit v1.3-2-g0d8e