From 489d8fab458c145671e5d10d3c1bd066f0d1532d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 18 May 2017 12:43:34 +0200 Subject: [PATCH] fix crontab naming, refs #20367 --- 9.MediaVault/1.Install_MediaVault/0_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/9.MediaVault/1.Install_MediaVault/0_setup.py b/9.MediaVault/1.Install_MediaVault/0_setup.py index f2e2c942..8d489589 100755 --- a/9.MediaVault/1.Install_MediaVault/0_setup.py +++ b/9.MediaVault/1.Install_MediaVault/0_setup.py @@ -11,11 +11,12 @@ def setup(interactive=True): 0 22 * * * root /usr/local/sbin/rsync_tmbackup.sh /etc root@{backup_server}:/backup/{hostname}/etc /etc/backup/excluded_patterns.txt 0 22 * * * root flock -n /etc/backup/home_backup.lock /usr/local/sbin/rsync_tmbackup.sh /home root@{backup_server}:/backup/{hostname}/home /etc/backup/excluded_patterns.txt''' + # crontab files can only contain lowercase and dashes, no _ or . cmds = [ 'cp rsync_tmbackup.sh /usr/local/sbin', 'mkdir -p /etc/backup', 'cp excluded_patterns.txt /etc/backup', - 'cp /tmp/backup.cron /etc/cron.d/', + 'cp /tmp/backup.cron /etc/cron.d/backup', ] server = utils.get_conf('BACKUP_SERVER', '') -- GitLab