This commit is contained in:
Bob Mottram 2017-04-23 17:27:19 +01:00
parent bbfa6d353f
commit 5232ddb305
1 changed files with 2 additions and 2 deletions

View File

@ -551,8 +551,8 @@ function expire_gnusocial_posts {
gnusocial_expire_script=/usr/bin/${gnusocial_type}-expire gnusocial_expire_script=/usr/bin/${gnusocial_type}-expire
echo '#!/bin/bash' > $gnusocial_expire_script echo '#!/bin/bash' > $gnusocial_expire_script
echo "/usr/bin/php $gnusocial_expire_posts_script" > $gnusocial_expire_script echo "/usr/bin/php $gnusocial_expire_posts_script" >> $gnusocial_expire_script
echo "find /var/www/${domain_name}/htdocs/file/* -mtime +${expire_days} -exec rm {} +" > $gnusocial_expire_script echo "find /var/www/${domain_name}/htdocs/file/* -mtime +${expire_days} -exec rm {} +" >> $gnusocial_expire_script
chmod +x $gnusocial_expire_script chmod +x $gnusocial_expire_script
# Add a cron job # Add a cron job