~vcs-imports/samba/main

« back to all changes in this revision

Viewing changes to packaging/Debian/debian-woody/samba.cron.daily

  • Committer: jerry
  • Date: 2006-07-14 21:48:39 UTC
  • Revision ID: vcs-imports@canonical.com-20060714214839-586d8c489a8fcead
gutting trunk to move to svn:externals

Show diffs side-by-side

added added

removed removed

Lines of Context:
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