diff --git a/scripts/migrate.sh b/scripts/migrate.sh index 96b4e30..be9a72f 100755 --- a/scripts/migrate.sh +++ b/scripts/migrate.sh @@ -1,10 +1,13 @@ #!/bin/bash -cd /var/www/continuousphp/current + +BUILD=$1 + +cd /var/www/continuousphp/$BUILD while [ ! -f /var/lib/continuousphp/credentials.ini ] do sleep 2 done -#chown -R www-data:www-data /var/www/continuousphp/current/* +chown -R www-data:www-data /var/www/continuousphp/$BUILD/* bin/phing -propertyfile /var/lib/continuousphp/credentials.ini init \ No newline at end of file