install systemd configs in /usr/local/lib/systemd/system/

This commit is contained in:
Matthew Saunders Brown 2022-10-20 11:50:09 -07:00
parent 3db90e3f7f
commit ccff56c58f

View File

@ -82,10 +82,13 @@ find /srv/www/html/roundcube -type f -exec chmod 644 {} +
chmod 755 /srv/www/html/roundcube/bin/*.sh chmod 755 /srv/www/html/roundcube/bin/*.sh
# install & enable rc systemd cron # 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/ cp sbin/rc-cron.sh /usr/local/sbin/
chmod 755 /usr/local/sbin/rc-cron.sh chmod 755 /usr/local/sbin/rc-cron.sh
cp systemd/rc-cron.* /usr/lib/systemd/system/ cp systemd/rc-cron.* /usr/local/lib/systemd/system/
chmod 644 /usr/lib/systemd/system/rc-cron.* chmod 644 /usr/local/lib/systemd/system/rc-cron.*
systemctl enable rc-cron.timer systemctl enable rc-cron.timer
systemctl start rc-cron.timer systemctl start rc-cron.timer