Skip to content

Instantly share code, notes, and snippets.

@zachseifts
Created August 10, 2011 14:26
Show Gist options
  • Save zachseifts/1136906 to your computer and use it in GitHub Desktop.
Save zachseifts/1136906 to your computer and use it in GitHub Desktop.
#!/bin/bash
NOW=$(date +%Y%m%d%k%M%S)
PLATFORM=appstate-7.x-stable-$NOW
PLATFORM_ROOT=/var/aegir/platforms/7.x
PLATFORM_NAME=platform_Appstate7xstable$NOW
# Create a new platform
cd $PLATFORM_ROOT
/opt/drush/drush.php make /var/aegir/builds/dev.make $PLATFORM
/opt/drush/drush.php --root="$PLATFORM_ROOT/$PLATFORM" provision-save "@$PLATFORM_NAME" --context_type="platform"
/opt/drush/drush.php @hostmaster hosting-import "@$PLATFORM_NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment