summaryrefslogtreecommitdiff
path: root/doc/forum/Executing_a_property_within_a_explicit_CWD/comment_1_00e636c4ec122361213f0e1062569704._comment
blob: b898b822648e9dddc0c1f66cf784653333f2f602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.
"""]]