mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/mod_wsgi: Handle .new files correctly.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
e821e5f6f8
commit
c93b1b4062
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue