ad-schema/license.txt: Fix typo.
[samba.git] / packaging / Debian / debian-woody / samba.cron.daily
1 #!/bin/sh
2 #
3 # cron script to save a backup copy of /etc/samba/smbpasswd in /var/backups.
4 #
5 # Written by Eloy A. Paris <peloy@debian.org> for the Debian project.
6 #
7
8 BAK=/var/backups
9
10 umask 022
11 if cd $BAK; then
12         # Make sure /etc/samba/smbpasswd exists
13         if [ -f /etc/samba/smbpasswd ]; then
14                 cmp -s smbpasswd.bak /etc/samba/smbpasswd || cp -p /etc/samba/smbpasswd smbpasswd.bak
15         fi
16 fi