From 4ff6c990ccdf7a1085a8b91c09e3dfe36c02967d Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 15 Apr 2017 01:56:09 +0200 Subject: [PATCH] [fix] Update crontab --- conf/crontab_mastodon | 7 ++++--- scripts/install | 11 ----------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/conf/crontab_mastodon b/conf/crontab_mastodon index 972cc3c..f6794fb 100644 --- a/conf/crontab_mastodon +++ b/conf/crontab_mastodon @@ -1,3 +1,4 @@ -@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:media:clear -@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:push:refresh -@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:feeds:clear \ No newline at end of file +@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:media:clear +@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:push:refresh +@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:feeds:clear +@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:users:clear \ No newline at end of file diff --git a/scripts/install b/scripts/install index 1c964b7..75c2cfd 100644 --- a/scripts/install +++ b/scripts/install @@ -154,23 +154,12 @@ RAILS_ENV=production bin/bundle exec rails db:setup RAILS_ENV=production bin/bundle exec rails --trace assets:precompile CCOMMANDS -# TODO: Doesn't work for the moment, -# Mastodon need a user for creating an administator account -# Create admin user -# Create confirm email -sudo su - $app <