From ccff56c58ff0284f0974e99a57ca419b8535594e Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 20 Oct 2022 11:50:09 -0700 Subject: [PATCH] install systemd configs in /usr/local/lib/systemd/system/ --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6877f7c..1ba9d87 100644 --- a/install.sh +++ b/install.sh @@ -82,10 +82,13 @@ find /srv/www/html/roundcube -type f -exec chmod 644 {} + chmod 755 /srv/www/html/roundcube/bin/*.sh # install & enable rc systemd cron +if [[ ! -d /usr/local/lib/systemd/system ]]; then + mkdir -p /usr/local/lib/systemd/system +fi cp sbin/rc-cron.sh /usr/local/sbin/ chmod 755 /usr/local/sbin/rc-cron.sh -cp systemd/rc-cron.* /usr/lib/systemd/system/ -chmod 644 /usr/lib/systemd/system/rc-cron.* +cp systemd/rc-cron.* /usr/local/lib/systemd/system/ +chmod 644 /usr/local/lib/systemd/system/rc-cron.* systemctl enable rc-cron.timer systemctl start rc-cron.timer