Browse Source

Use cron functions

stretch
Bob Mottram 3 years ago
parent
commit
e7ddb66c50
4 changed files with 4 additions and 4 deletions
  1. + 1
    - 1
      src/freedombone-app-bdsmail
  2. + 1
    - 1
      src/freedombone-app-icecast
  3. + 1
    - 1
      src/freedombone-app-pleroma
  4. + 1
    - 1
      src/freedombone-utils-gnusocialtools

+ 1
- 1
src/freedombone-app-bdsmail

@ -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

+ 1
- 1
src/freedombone-app-icecast

@ -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
}

+ 1
- 1
src/freedombone-app-pleroma

@ -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
}

+ 1
- 1
src/freedombone-utils-gnusocialtools

@ -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
}

Loading…
Cancel
Save