diff options
author | Matteo Bernardini | 2020-03-07 10:13:09 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-03-07 10:13:09 +0100 |
commit | 5a5dc1dabed18903b66c8a315dad1f8b753047a7 (patch) | |
tree | 70960ec22120e2b2947c2f7faba00ccf24069880 /system/mlocate/doinst.sh | |
parent | 1cd68324729b0dc6aceaa8a9a64c3f1afc36d9fd (diff) | |
download | slackbuilds-5a5dc1dabed18903b66c8a315dad1f8b753047a7.tar.gz |
20200307.1 global branch merge.current-20200307.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 - |