rougail/upgrade/pre_download/03-zephir-client

17 lines
418 B
Plaintext
Raw Normal View History

2019-11-23 08:17:35 +01:00
#!/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