Skip to content

Instantly share code, notes, and snippets.

@nfroidure
Created September 15, 2012 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfroidure/3727624 to your computer and use it in GitHub Desktop.
Save nfroidure/3727624 to your computer and use it in GitHub Desktop.
Migration
#! /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
@nfroidure
Copy link
Author

Petite précision, le script /var/www/restfor/shell/migration.sh fait des connexions SSH et MYSQL, ça peut en être l'origine ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment