fix missing sieve links on new systems
authorIan Kelling <ian@iankelling.org>
Mon, 29 Jul 2019 20:47:43 +0000 (16:47 -0400)
committerIan Kelling <ian@iankelling.org>
Mon, 29 Jul 2019 20:47:43 +0000 (16:47 -0400)
mail-setup

index 645510a14049d1c0ff8d61e313a1843b75426ed3..9bc36dc3d2344ded9374fc29b0d7bf766a828999 100755 (executable)
@@ -566,6 +566,9 @@ EOF
   # internet. I was torn about whether to do this or not, meh.
   pi dovecot-core dovecot-imapd dovecot-sieve dovecot-lmtpd
 
+  for f in /p/c/subdir_files/sieve/*sieve /a/c/subdir_files/sieve/*sieve; do
+    sudo -u $u /a/exe/lnf -T $f $(eval echo ~$u)/sieve/${f##*/}
+  done
   # if we changed 90-sieve.conf and removed the active part of the
   # sieve option, we wouldn\'t need this, but I\'d rather not modify a
   # default config if not needed. This won\'t work as a symlink in /a/c