Use cron functions

This commit is contained in:
Bob Mottram 2018-02-21 21:40:30 +00:00
parent 3f59c12af7
commit e7ddb66c50
4 changed files with 4 additions and 4 deletions

View File

@ -404,7 +404,7 @@ function install_bdsmail {
chmod +x /usr/bin/bdsmail_distribute
if ! grep -q 'bdsmail_distribute' /etc/crontab; then
echo '*/1 * * * * root /usr/bin/bdsmail_distribute 2> /dev/null' >> /etc/crontab
cron_add_mins 1 '/usr/bin/bdsmail_distribute 2> /dev/null'
fi
echo '#!/bin/bash' > /usr/bin/bdsmail_domain

View File

@ -105,7 +105,7 @@ function icecast_update_daemon {
systemctl enable icecast2
if ! grep -q "start_icecast" /etc/crontab; then
echo '*/1 * * * * root /usr/bin/start_icecast > /dev/null' >> /etc/crontab
cron_add_mins 1 '/usr/bin/start_icecast 2> /dev/null'
fi
}

View File

@ -127,7 +127,7 @@ function create_pleroma_blocklist {
chmod +x $blocking_script_file
if ! grep -q "$blocking_script_file" /etc/crontab; then
echo "*/1 * * * * root $blocking_script_file > /dev/null" >> /etc/crontab
cron_add_mins 1 "$blocking_script_file 2> /dev/null"
fi
}

View File

@ -654,7 +654,7 @@ function gnusocial_block_domain_script {
chmod +x /usr/bin/${database_name}-firewall
if ! grep -q "${database_name}-firewall" /etc/crontab; then
echo "*/1 * * * * root /usr/bin/${database_name}-firewall" >> /etc/crontab
cron_add_mins 1 "/usr/bin/${database_name}-firewall"
fi
}