postfixadmin - new dependency and addConf option fix

This commit is contained in:
2022-12-04 23:38:59 +01:00
parent 38f39a51f7
commit f50a235dae

View File

@@ -7,7 +7,7 @@ readonly toolConfName="config.local.php"
readonly toolTemplates="templates_c" readonly toolTemplates="templates_c"
readonly latestUrl="https://api.github.com/repos/$toolName/$toolName/releases/latest" readonly latestUrl="https://api.github.com/repos/$toolName/$toolName/releases/latest"
readonly fetchmailUser="fetchmail" readonly fetchmailUser="fetchmail"
readonly fetchmailDeps="fetchmail liblockfile-simple-perl" readonly fetchmailDeps="fetchmail liblockfile-simple-perl libdbd-mysql-perl"
toolTemplatesLoc= toolTemplatesLoc=
toolAdditionsLoc= toolAdditionsLoc=
@@ -120,8 +120,8 @@ if \$programname == 'systemd' and re_match(\$msg, \"fetchmail.*Succeeded\") then
step_7_info() { echo "Create separate log file for fetchmail using rsyslog"; } step_7_info() { echo "Create separate log file for fetchmail using rsyslog"; }
step_7_alias() { echo "newlog"; } step_7_alias() { echo "newlog"; }
step_7() { step_7() {
addConf -f "$fetchmailRsyslog" "$fetchmailRsyslogLoc" addConf -c "$fetchmailRsyslog" "$fetchmailRsyslogLoc"
addConf -f "$fetchmailRotate" "$fetchmailRotateLoc" addConf -c "$fetchmailRotate" "$fetchmailRotateLoc"
exe service rsyslog restart exe service rsyslog restart
} }
fetchmailLogLoc="/var/log/fetchmail.log" fetchmailLogLoc="/var/log/fetchmail.log"