1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00
Simo Sorce fa75e8c1d4 r11395: Update the Debian packaging.
Move form stable to stable distribution names based hives.
(This used to be commit bb13b3482047b6ab6d84ba9e2839cf8a0fac71aa)
2007-10-10 11:05:15 -05:00

17 lines
383 B
Bash

#!/bin/sh
#
# cron script to save a backup copy of /etc/samba/smbpasswd in /var/backups.
#
# Written by Eloy A. Paris <peloy@debian.org> for the Debian project.
#
BAK=/var/backups
umask 022
if cd $BAK; then
# Make sure /etc/samba/smbpasswd exists
if [ -f /etc/samba/smbpasswd ]; then
cmp -s smbpasswd.bak /etc/samba/smbpasswd || cp -p /etc/samba/smbpasswd smbpasswd.bak
fi
fi