slackbuilds_ponce/libraries/php-stomp/doinst.sh
Giuseppe Di Terlizzi 5e4d5e3ce2 libraries/php-stomp: Added (Stomp client php extension).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-04-22 08:10:45 +07:00

15 lines
382 B
Bash

#!/bin/sh
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/php.d/stomp.ini.new