harshancx

Untitled

Aug 7th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3.  
  4. cd ~/repo/enterprise-db/
  5. git checkout production
  6. git pull
  7. rm ~/repo/enterprise-db/docroot/sites/default/local.db.inc
  8. rsync -avW -e --delete ~/repo/enterprise-db/simplesamlphp/ /var/www/simplesamlphp/
  9. rsync -avW -e --delete --exclude '.git' --exclude 'sites/default/files' ~/repo/enterprise-db/docroot/ /var/www/html/
  10. cp -v ~/repo/local.db.inc /var/www/html/sites/default/local.db.inc
  11. chmod 644 /var/www/html/sites/default/settings.php
  12. chmod 755 /var/www/html/sites/default
  13. cd /var/www/html
  14. drush cc all
  15. drush cc theme-registry
  16. rm /var/www/html/simplesaml
  17. ln -s /var/www/simplesamlphp/www /var/www/html/simplesaml
Advertisement
Add Comment
Please, Sign In to add comment