20 lines
527 B
Bash
Executable File
20 lines
527 B
Bash
Executable File
#!/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
|