diff options
author | Michel A. Begue <mab974@misouk.com> | 2023-03-11 20:19:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-03-11 20:19:06 +0700 |
commit | 050d496a79111f06a36c3de636ffa831f5952e7d (patch) | |
tree | 7e792d753f9c53701715df7a57165138d58a8a82 /network/phppgadmin/doinst.sh | |
parent | 7d5c936ad2da7d6111e71c3e8bbc998231af0fa9 (diff) |
network/phppgadmin: Added (a php webapp for Postgresql).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/phppgadmin/doinst.sh')
-rw-r--r-- | network/phppgadmin/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/phppgadmin/doinst.sh b/network/phppgadmin/doinst.sh new file mode 100644 index 0000000000..9e17dcbecd --- /dev/null +++ b/network/phppgadmin/doinst.sh @@ -0,0 +1,14 @@ +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/httpd/conf.d/phppgadmin.conf.new |