aboutsummaryrefslogtreecommitdiffstats
path: root/SlackBuilds/syncthing/doinst.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-03 18:17:29 +0200
committerDanilo M. <danix@danix.xyz>2026-04-03 18:17:29 +0200
commitebb26eac2948e02def3c7ac1ac23c4ecd345a5a7 (patch)
treec54b2a6d28a89333b771bdee05e6baa45fe0c94f /SlackBuilds/syncthing/doinst.sh
parent1045963959ddfb697898fa90476f837aae4e2881 (diff)
downloadmy-slackbuilds-ebb26eac2948e02def3c7ac1ac23c4ecd345a5a7.tar.gz
my-slackbuilds-ebb26eac2948e02def3c7ac1ac23c4ecd345a5a7.zip
repo: flatten layout — move packages to root, extras to .extras/
- Move all packages from SlackBuilds/ to repo root - Move hooks/, docs/, nvchecker.toml to .extras/ - Update CLAUDE.md and README.md to reflect new structure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'SlackBuilds/syncthing/doinst.sh')
-rw-r--r--SlackBuilds/syncthing/doinst.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/SlackBuilds/syncthing/doinst.sh b/SlackBuilds/syncthing/doinst.sh
deleted file mode 100644
index 9d663d4..0000000
--- a/SlackBuilds/syncthing/doinst.sh
+++ /dev/null
@@ -1,25 +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
-}
-
-config etc/logrotate.d/syncthing.new
-preserve_perms etc/rc.d/rc.syncthing.new