aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-08 10:59:14 +0200
committernemsia <nemsia@nemsia.org>2018-06-08 10:59:14 +0200
commit140a13c67536a555bf9fea7b8f5a17efbc72bd91 (patch)
tree995be2e52b80b141b6017a3a64ea14a688041840
parentdcf41efbe5a45d32054f55e281735628d311eecc (diff)
downloadmastodon_ynh-140a13c67536a555bf9fea7b8f5a17efbc72bd91.tar.gz
mastodon_ynh-140a13c67536a555bf9fea7b8f5a17efbc72bd91.tar.bz2
mastodon_ynh-140a13c67536a555bf9fea7b8f5a17efbc72bd91.zip
Remove mastodon cron tasks
-rw-r--r--scripts/backup7
-rw-r--r--scripts/install4
-rw-r--r--scripts/restore6
3 files changed, 0 insertions, 17 deletions
diff --git a/scripts/backup b/scripts/backup
index ab231b3..0846afe 100644
--- a/scripts/backup
+++ b/scripts/backup
@@ -66,13 +66,6 @@ ynh_backup "/etc/systemd/system/$app-sidekiq.service"
ynh_backup "/etc/systemd/system/$app-streaming.service"
#=================================================
-# BACKUP THE CRON FILE
-#=================================================
-
-# Copy the nginx conf files
-ynh_backup "/etc/cron.d/$app"
-
-#=================================================
# BACKUP THE sources.list FILES
#=================================================
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
diff --git a/scripts/install b/scripts/install
index 8058671..cbce4e3 100644
--- a/scripts/install
+++ b/scripts/install
@@ -247,10 +247,6 @@ RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$ad
SETADMIN
)
-# Install crontab
-cp ../conf/crontab_mastodon /etc/cron.d/$app
-sed -i "s@__APP__@$app@g" /etc/cron.d/$app
-
#=================================================
# GENERIC FINALIZATION
#=================================================
diff --git a/scripts/restore b/scripts/restore
index 77cb229..a800966 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -149,12 +149,6 @@ ynh_restore_file "/etc/systemd/system/$app-streaming.service"
systemctl enable "$app-web" "$app-sidekiq" "$app-streaming"
#=================================================
-# RESTORE THE CRON FILE
-#=================================================
-
-ynh_restore_file "/etc/cron.d/$app"
-
-#=================================================
# GENERIC FINALIZATION
#=================================================
# RELOAD NGINX AND PHP-FPM