Skip to content
Snippets Groups Projects
Commit 201dbe39 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'fix-notify-doc' into 'master'

fix varname in cronjob file

See merge request !103
parents c2656313 cb6975ae
Branches update-docs
No related tags found
1 merge request!103fix varname in cronjob file
......@@ -50,14 +50,14 @@ $ cat /etc/cron.d/client-backup
If you don't run the backup on a server but on a client you can activate the desktop notification for a user that is logged in. It uses *notify-send* to show notification messages.
In a cronjob that start the backup script as root must know the user that should get the notifications.
Set a variable `SUPER_USER=<USERNAME>` in your cron file.
Set a variable `SUDO_USER=<USERNAME>` in your cron file.
Example:
```shell
$ cat /etc/cron.d/client-backup
SUPER_USER=axel
SUDO_USER=axel
17 * * * * root /usr/local/bin/cronwrapper.sh 1440 /opt/imlbackup/client/backup.sh 'iml-backup'
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment