for creole's zephir2 branch
This commit is contained in:
19
upgrade/post_upgrade/03-zephir-client
Executable file
19
upgrade/post_upgrade/03-zephir-client
Executable 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
|
Reference in New Issue
Block a user