aboutsummaryrefslogtreecommitdiff
path: root/development/schroot/doinst.sh
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2011-12-21 06:29:02 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-12-22 00:03:03 -0600
commita2ce6fc7c2d93d57d191b16bfd9e1ddf0b5e75a6 (patch)
tree1eb7ba6757e2d2461db744efcf9b6a6ce7d66045 /development/schroot/doinst.sh
parent7bb560d5ca6f6f280a0ac2a2099b9c78fd55a171 (diff)
development/schroot: Added (secure chroot utility)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/schroot/doinst.sh')
-rw-r--r--development/schroot/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/schroot/doinst.sh b/development/schroot/doinst.sh
new file mode 100644
index 0000000000000..f00b3312c13a4
--- /dev/null
+++ b/development/schroot/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/schroot/schroot.conf.new
+config etc/pam.d/schroot.new