Skip to content

Instantly share code, notes, and snippets.

@kylebrowning
Forked from CrackerJackMack/purge-cloudstack.sh
Created September 26, 2014 00:58
Show Gist options
  • Select an option

  • Save kylebrowning/7ea6b142d335052c3d23 to your computer and use it in GitHub Desktop.

Select an option

Save kylebrowning/7ea6b142d335052c3d23 to your computer and use it in GitHub Desktop.

Revisions

  1. kylebrowning revised this gist Sep 26, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions purge-cloudstack.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    /etc/init.d/cloud-management stop
    service cloudstack-management stop
    mysql -ppassword -e 'drop database cloud'
    mysql -ppassword -e 'drop database cloud_usage'

    cloud-setup-databases cloud:password@localhost --deploy-as=root:password
    cloudstack-setup-databases cloud:password@localhost --deploy-as=root:password
    rm -rf /var/log/cloud/management/*
    cloud-setup-management
    /etc/init.d/cloud-management start
    cloudstack-setup-management
    service cloudstack-management start
  2. @invalid-email-address Anonymous created this gist Jun 22, 2012.
    8 changes: 8 additions & 0 deletions purge-cloudstack.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /etc/init.d/cloud-management stop
    mysql -ppassword -e 'drop database cloud'
    mysql -ppassword -e 'drop database cloud_usage'

    cloud-setup-databases cloud:password@localhost --deploy-as=root:password
    rm -rf /var/log/cloud/management/*
    cloud-setup-management
    /etc/init.d/cloud-management start