Created
September 15, 2012 12:43
-
-
Save nfroidure/3727624 to your computer and use it in GitHub Desktop.
Migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Init | |
cd / | |
if [ "$1" != "Y" ]; then | |
echo "$0 1:sure(Y/N)" | |
else | |
while read orgid database | |
do | |
if [ "$database" != "" ] && [ "$orgid" != "" ] && [ "$orgid" != "0" ]; then | |
echo "Migrating $database ($orgid)"; | |
/var/www/restfor/shell/migration.sh "$database" $orgid; | |
fi | |
done < /var/www/restfor/shell/old_databases.txt | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Petite précision, le script /var/www/restfor/shell/migration.sh fait des connexions SSH et MYSQL, ça peut en être l'origine ?