diff options
author | Matteo Bernardini | 2020-05-16 08:40:20 +0200 |
---|---|---|
committer | Matteo Bernardini | 2020-05-16 08:40:20 +0200 |
commit | 24d138810ffcc8f587a8b5738055b391d5557876 (patch) | |
tree | 36cb94ee167544a9b47bb0977f363ad1d9a9269c /system/mlocate/doinst.sh | |
parent | ba2748231a15ec48e202d1266310f7b2ac19f831 (diff) | |
download | slackbuilds-current-20200516.1.tar.gz |
20200516.1 global branch merge.current-20200516.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/mlocate/doinst.sh')
-rw-r--r-- | system/mlocate/doinst.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/system/mlocate/doinst.sh b/system/mlocate/doinst.sh deleted file mode 100644 index 8afb2a4fff..0000000000 --- a/system/mlocate/doinst.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# doinst.sh copied from Pat's, got rid of the stuff that creates the -# slocate group. - -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/updatedb.conf.new - -if [ ! -r var/lib/mlocate/mlocate.db ]; then - touch var/lib/mlocate/mlocate.db - chown root:slocate var/lib/mlocate/mlocate.db - chmod 640 var/lib/mlocate/mlocate.db -fi - |