Subversion Repositories se3

Rev

Rev 3061 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/bin/bash
svn update ./
ARCHIVE_FILE="migration_sarge2etch.tgz"
ARCHIVE_FILE_MD5="migration_sarge2etch.md5"

SCRIPTS_DIR="se3master/var/cache/se3_install/scripts"
WORKDIR="/tmp/workdir"

echo "effacement ancienne archive"
rm -f $ARCHIVE_FILE_MD5 $ARCHIVE_FILE
mkdir -p $WORKDIR
cp $SCRIPTS_DIR/se3_upgrade_etch.sh $WORKDIR/
cp $SCRIPTS_DIR/migration_ldap_etch.sh $WORKDIR/
# cp $SCRIPTS_DIR/migration_UTF8.sh $WORKDIR/

cd $WORKDIR
md5sum se3_upgrade_etch.sh > se3_upgrade_etch.md5
md5sum migration_ldap_etch.sh > migration_ldap_etch.md5
# md5sum migration_UTF8.sh > migration_UTF8.md5
tar -cvzf $ARCHIVE_FILE *.sh *.md5

md5sum $ARCHIVE_FILE > $ARCHIVE_FILE_MD5
cp -a $ARCHIVE_FILE /var/www/majse3/
cp -a $ARCHIVE_FILE_MD5 /var/www/majse3/

cd -
# rm -f /tmp/$WORKDIR/*

exit 0