17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
/usr/bin/enregistrement_zephir --check >/dev/null 2>&1
|
||
|
|
||
|
if [ $? -eq 0 ]
|
||
|
then
|
||
|
BACKUP_DIR=/var/lib/zephir_backup/
|
||
|
mkdir -p $BACKUP_DIR
|
||
|
# copie temporaire de la configuration d'enregistrement
|
||
|
cp -f /usr/lib/python2.7/dist-packages/zephir/zephir_conf/zephir_conf.py $BACKUP_DIR
|
||
|
# configuration ssh de l'utilisateur uucp
|
||
|
cp -rpf /var/spool/uucp/.ssh $BACKUP_DIR
|
||
|
cp -rpf /etc/uucp $BACKUP_DIR
|
||
|
fi
|
||
|
|
||
|
exit 0
|