for creole's zephir2 branch

This commit is contained in:
2019-11-23 08:17:35 +01:00
commit 841643e76e
700 changed files with 68183 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/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