diff options
author | Arn0 <yth@ythogtha.org> | 2023-07-04 14:18:15 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-06 11:23:30 +0700 |
commit | 1c2f2e39f25abee8185e93a474225b72238ed6b0 (patch) | |
tree | 8cbb18e79123c334e3b418a4cb74c95f985ee763 /network/graphite-carbon/doinst.sh | |
parent | dd5ec5ec70877d706971a4ae3fb6e3dbe21e7a6e (diff) |
network/graphite-carbon: Removed: obsolete, outdated, unmaintained, not working, or not needed anymore.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/graphite-carbon/doinst.sh')
-rw-r--r-- | network/graphite-carbon/doinst.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/network/graphite-carbon/doinst.sh b/network/graphite-carbon/doinst.sh deleted file mode 100644 index b11adc4f0ffe..000000000000 --- a/network/graphite-carbon/doinst.sh +++ /dev/null @@ -1,26 +0,0 @@ -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... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -for i in etc/rc.d/rc.carbon-*.new ; do preserve_perms $i ; done -for i in etc/carbon/*.new etc/logrotate.d/graphite-carbon.new ; do config $i ; done |