From 5d1a670df7328dec1e3ecdb55b48ec556394717e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 Apr 2017 12:49:37 +0100 Subject: [PATCH] gnusocial expire in crontab --- src/freedombone-utils-gnusocialtools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 5ed37bec..f55cc858 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -328,7 +328,7 @@ function expire_gnusocial_posts { # Add a cron job if ! grep -q "${gnusocial_type}_expire_script" /etc/crontab; then - echo "10 3 5 * * root /usr/bin/timeout 500 /usr/bin/php ${gnusocial_type}_expire_script" >> /etc/crontab + echo "10 3 5 * * root /usr/bin/timeout 500 /usr/bin/php ${gnusocial_expire_script}" >> /etc/crontab fi # remove old expire script