Better check
This commit is contained in:
parent
423bea11ad
commit
7b2366891c
|
@ -565,7 +565,7 @@ function expire_gnusocial_posts {
|
|||
chmod +x $gnusocial_expire_script
|
||||
|
||||
# Add a cron job
|
||||
if ! grep -q "${gnusocial_type}_expire_script" /etc/crontab; then
|
||||
if ! grep -q "${gnusocial_expire_script}" /etc/crontab; then
|
||||
echo "10 3 5 * * root /usr/bin/timeout 500 ${gnusocial_expire_script}" >> /etc/crontab
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue