install systemd configs in /usr/local/lib/systemd/system/
This commit is contained in:
parent
f1f2fd9e9a
commit
911a3e10af
13
install.sh
13
install.sh
|
@ -93,12 +93,17 @@ chmod 644 /etc/spamassassin/local.cf
|
||||||
chown debian-spamd:mail /etc/spamassassin/sql.cf
|
chown debian-spamd:mail /etc/spamassassin/sql.cf
|
||||||
chmod 640 /etc/spamassassin/sql.cf
|
chmod 640 /etc/spamassassin/sql.cf
|
||||||
|
|
||||||
|
# create local systemd dir, used by srsd & vmail-cron
|
||||||
|
if [[ ! -d /usr/local/lib/systemd/system ]]; then
|
||||||
|
mkdir -p /usr/local/lib/systemd/system
|
||||||
|
fi
|
||||||
|
|
||||||
# srsd
|
# srsd
|
||||||
# bug fixes for libmail-srs-perl. still needed as of v0.31-6 on Ubuntu 22.04
|
# bug fixes for libmail-srs-perl. still needed as of v0.31-6 on Ubuntu 22.04
|
||||||
sed -i 's|/tmp/srsd|/run/srsd/srsd.sock|' /usr/share/perl5/Mail/SRS/Daemon.pm
|
sed -i 's|/tmp/srsd|/run/srsd/srsd.sock|' /usr/share/perl5/Mail/SRS/Daemon.pm
|
||||||
sed -i '/Until we decide that forward/,+3d' /usr/share/perl5/Mail/SRS/Daemon.pm
|
sed -i '/Until we decide that forward/,+3d' /usr/share/perl5/Mail/SRS/Daemon.pm
|
||||||
cp systemd/srsd.service /lib/systemd/system/srsd.service
|
cp systemd/srsd.service /usr/local/lib/systemd/system/srsd.service
|
||||||
chmod 644 /lib/systemd/system/srsd.service
|
chmod 644 /usr/local/lib/systemd/system/srsd.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable srsd
|
systemctl enable srsd
|
||||||
systemctl start srsd
|
systemctl start srsd
|
||||||
|
@ -150,8 +155,8 @@ cp bin/* /usr/local/bin/
|
||||||
# install & enable vmail systemd cron
|
# install & enable vmail systemd cron
|
||||||
cp sbin/vmail-cron.sh /usr/local/sbin/
|
cp sbin/vmail-cron.sh /usr/local/sbin/
|
||||||
chmod 755 /usr/local/sbin/vmail-cron.sh
|
chmod 755 /usr/local/sbin/vmail-cron.sh
|
||||||
cp systemd/vmail-cron.* /usr/lib/systemd/system/
|
cp systemd/vmail-cron.* /usr/local/lib/systemd/system/
|
||||||
chmod 644 /usr/lib/systemd/system/vmail-cron.*
|
chmod 644 /usr/local/lib/systemd/system/vmail-cron.*
|
||||||
systemctl enable vmail-cron.timer
|
systemctl enable vmail-cron.timer
|
||||||
systemctl start vmail-cron.timer
|
systemctl start vmail-cron.timer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user