diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/mod_wsgi/doinst.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/network/mod_wsgi/doinst.sh b/network/mod_wsgi/doinst.sh index 7deb2518db..9650048d97 100644 --- a/network/mod_wsgi/doinst.sh +++ b/network/mod_wsgi/doinst.sh @@ -11,5 +11,16 @@ config() { # Otherwise, we leave the .new copy for the admin to consider... } -config etc/httpd/mod_wsgi.conf.new +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + +preserve_perms etc/httpd/extra/mod_wsgi.conf.new |