Avoid multiple entries

This commit is contained in:
Bob Mottram 2015-12-11 15:13:58 +00:00
parent bdebb727bc
commit 3c8f0fc6c9
1 changed files with 6 additions and 3 deletions

View File

@ -7473,8 +7473,9 @@ quit" > $INSTALL_DIR/batch.sql
echo ' cp -f /var/backups/gnusocial_weekly.sql /var/backups/gnusocial_monthly.sql' >> /etc/cron.monthly/backupdatabasesmonthly
echo 'fi' >> /etc/cron.monthly/backupdatabasesmonthly
echo "${PROJECT_NAME}-repair-database gnusocial" >> /etc/cron.hourly/repair
if ! grep -q "gnusocial" /etc/cron.hourly/repair; then
echo "${PROJECT_NAME}-repair-database gnusocial" >> /etc/cron.hourly/repair
fi
nginx_ensite $MICROBLOG_DOMAIN_NAME
service php5-fpm restart
service nginx restart
@ -7795,7 +7796,9 @@ quit" > $INSTALL_DIR/batch.sql
echo ' cp -f /var/backups/hubzilla_weekly.sql /var/backups/hubzilla_monthly.sql' >> /etc/cron.monthly/backupdatabasesmonthly
echo 'fi' >> /etc/cron.monthly/backupdatabasesmonthly
echo "${PROJECT_NAME}-repair-database hubzilla" >> /etc/cron.hourly/repair
if ! grep -q "hubzilla" /etc/cron.hourly/repair; then
echo "${PROJECT_NAME}-repair-database hubzilla" >> /etc/cron.hourly/repair
fi
chown -R www-data:www-data /var/www/$HUBZILLA_DOMAIN_NAME/htdocs