Skip to content
Snippets Groups Projects
Commit 7b236689 authored by Bob Mottram's avatar Bob Mottram
Browse files

Better check

parent 423bea11
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment