iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8bfe151
)
distro specific fixes
master
author
Ian Kelling
<ian@iankelling.org>
Wed, 19 Jun 2024 15:54:36 +0000
(11:54 -0400)
committer
Ian Kelling
<ian@iankelling.org>
Wed, 19 Jun 2024 15:54:36 +0000
(11:54 -0400)
brc
patch
|
blob
|
history
mail-setup
patch
|
blob
|
history
diff --git
a/brc
b/brc
index d359f6535415300e9fe9746514261b2d95150645..222e0f85c5c908c5507ad3dfdc1c0791275e9252 100644
(file)
--- a/
brc
+++ b/
brc
@@
-3377,7
+3377,8
@@
if [[ $- == *i* ]]; then
# titelbar below
#echo -ne "$_title_escape $HOSTNAME ${PWD/#$HOME/~} \007"
# titelbar below
#echo -ne "$_title_escape $HOSTNAME ${PWD/#$HOME/~} \007"
- if [[ $KONSOLE_VERSION ]]; then
+ # version 211203 does not have this feature.
+ if [[ $KONSOLE_VERSION && $KONSOLE_VERSION == [3456789]* || $KONSOLE_VERSION == 2[2456789]* ]]; then
# from konsole, output via ctrl-alt-]
if [[ ! $PS1 =~ 133 ]] ; then
PS1='\[\e]133;L\a\]\[\e]133;D;$?\]\[\e]133;A\a\]'$PS1'\[\e]133;B\a\]' ;
# from konsole, output via ctrl-alt-]
if [[ ! $PS1 =~ 133 ]] ; then
PS1='\[\e]133;L\a\]\[\e]133;D;$?\]\[\e]133;A\a\]'$PS1'\[\e]133;B\a\]' ;
diff --git
a/mail-setup
b/mail-setup
index cdbf9e8ef4216f71453e4d131ee9c40706b7ec20..616d39bae20e9b2fdfe033754a39fb2e4fd297d8 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-453,9
+453,17
@@
Pin-Priority: 500
EOF
fi
EOF
fi
+
+unit-exists() {
+ systemctl cat $1 &>/dev/null
+}
+spamd-timer-exists() {
+ unit-exists spamassassin-maintenance.timer
+}
+
# name change in t12, and now timer instead of cron option in /etc/default
first_spamd_run=false
# name change in t12, and now timer instead of cron option in /etc/default
first_spamd_run=false
-if ! s
ystemctl cat spamassassin-maintenance.timer &>/dev/null
; then
+if ! s
pamd-timer-exists
; then
first_spamd_run=true
fi
first_spamd_run=true
fi
@@
-468,10
+476,14
@@
spamd_ser=spamd
if systemctl cat spamassassin &>/dev/null; then
spamd_ser=spamassassin
elif $first_spamd_run; then
if systemctl cat spamassassin &>/dev/null; then
spamd_ser=spamassassin
elif $first_spamd_run; then
- systemctl start spamassassin-maintenance
+ if spamd-timer-exists; then
+ systemctl start spamassassin-maintenance
+ fi
fi
fi
-systemctl enable --now spamassassin-maintenance.timer
+if spamd-timer-exists; then
+ systemctl enable --now spamassassin-maintenance.timer
+fi
# note: pyzor debian readme says you need to run some initialization command
# but its outdated.
# note: pyzor debian readme says you need to run some initialization command
# but its outdated.