harshancx

deployment-scrpt-stage4

Sep 13th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3.  
  4. cd ~/repo/enterprise-db/
  5. git checkout master
  6. git pull
  7. rm ~/repo/enterprise-db/docroot/sites/default/local.db.inc
  8. sudo chown -R apache:apache ~/repo/enterprise-db/docroot
  9. rsync -avh ~/repo/enterprise-db/simplesamlphp/ /var/www/simplesamlphp/ --delete
  10. rsync -avh --exclude ‘.git’ --exclude ‘sites/default/files’ --exclude ‘sites/default/files-private’ ~/repo/enterprise-db/docroot/ /var/www/html/ --delete
  11. cp -v ~/repo/local.db.inc /var/www/html/sites/default/local.db.inc
  12. chmod 644 /var/www/html/sites/default/settings.php
  13. chmod 755 /var/www/html/sites/default
  14. cd /var/www/html
  15. drush cc all
  16. drush cc theme-registry
  17. drush en -y stage_file_proxy
  18. rm /var/www/html/simplesaml
  19. ln -s /var/www/simplesamlphp/www /var/www/html/simplesaml
Advertisement
Add Comment
Please, Sign In to add comment