for creole's zephir2 branch
This commit is contained in:
16
upgrade/pre_download/03-zephir-client
Executable file
16
upgrade/pre_download/03-zephir-client
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
Reference in New Issue
Block a user