diff options
author | Andreas <andreas@immerda.ch> | 2009-11-09 18:00:37 +0100 |
---|---|---|
committer | Andreas <andreas@immerda.ch> | 2009-11-09 18:00:37 +0100 |
commit | 57da0ebe11e5b6f99dc96c13845e4b3205442df1 (patch) | |
tree | 632b31e45ddc5b712a0418320606886494f6bb71 /manifests/vhost/php | |
parent | aa28a3702b47856156a6e93d21975d9552f07315 (diff) |
safe_mode_bin links
Diffstat (limited to 'manifests/vhost/php')
-rw-r--r-- | manifests/vhost/php/safe_mode_bin.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/vhost/php/safe_mode_bin.pp b/manifests/vhost/php/safe_mode_bin.pp new file mode 100644 index 0000000..b4f3de5 --- /dev/null +++ b/manifests/vhost/php/safe_mode_bin.pp @@ -0,0 +1,16 @@ +# run_mode: +# - normal: nothing special (*default*) +# - itk: apache is running with the itk module +# and run_uid and run_gid are used as vhost users +# run_uid: the uid the vhost should run as with the itk module +# run_gid: the gid the vhost should run as with the itk module +define apache::vhost::php::safe_mode_bin( + $path +){ + $substr=regsubst($name,'^.*\/','','G') + $real_path = "$path/$substr" + apache::file::link{ "$real_path": + target => regsubst($name,'^.*_','') + } +} + |