various improvements
[distro-setup] / install-my-scripts
index 0e36a4f86ec8f91db051b49f9c34cc115fc50a37..63084ee0cc0bb618547ed8ba5f2c0d201932c9ba 100755 (executable)
@@ -28,7 +28,12 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 x="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file
 
 
-# scripts that would interfere with unmounting /a, put them elsewhere
-install /a/bin/log-quiet/log-once switch-mail-host btrbk-run mount-latest-subvol \
+# scripts that would interfere with unmounting /a, put them elsewhere.
+# note: previously used the install command, but it had this habit of
+# like, once a month or so the files would be "not found" by a script
+# trying to use them, within a few minute of the last time this
+# ran. Very strange, dunno why, but rsync won't do anything unless these
+# changed, so that should fix it.
+rsync -t --chmod=755 --chown=root:root /a/bin/log-quiet/log-once switch-mail-host btrbk-run mount-latest-subvol \
         check-subvol-stale /usr/local/bin
-install /a/bin/errhandle/err /usr/local/lib
+rsync -t --chmod=755 --chown=root:root /a/bin/errhandle/err /usr/local/lib