rougail/upgrade/post_upgrade/03-zephir-client

20 lines
527 B
Plaintext
Raw Normal View History

2019-11-23 08:17:35 +01:00
#!/bin/bash
BACKUP_DIR=/var/lib/zephir_backup
OLD_DIR=/usr/lib/python2.6/dist-packages/zephir
if [ -f $BACKUP_DIR/zephir_conf.py ]
then
# mise en place de la configuration uucp
cp -rpf $BACKUP_DIR/.ssh /var/spool/uucp/
cp -pf $BACKUP_DIR/uucp/* /etc/uucp/
# mise en place de la configuration d'enregistrement (python 2.7)
mv -f $BACKUP_DIR/zephir_conf.py /usr/lib/python2.7/dist-packages/zephir/zephir_conf/
rm -rf $BACKUP_DIR
# suppression anciens fichier python2.6
if [ -d $OLD_DIR ]
then
rm -rf $OLD_DIR
fi
fi