Created
August 13, 2008 18:47
-
-
Save christianromney/5286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Backup existing JAR | |
cp user_projects/domains/NCLWEBDEVdom/applications/CS/WEB-INF/lib/cms-dependencies.jar backups/cms/cms-dependencies.jar.`date -u +%Y-%m-%dT%H:%M:%SZ` | |
# Copy latest from cruise control | |
scp cruisecontroller@167.118.131.11:/var/cruisecontrolrb/projects/cms/work/dist/cms-dependencies.jar user_projects/domains/NCLWEBDEVdom/applications/CS/WEB-INF/lib/ | |
# Make sure we own the file | |
chown weblogik:ncldevadm user_projects/domains/NCLWEBDEVdom/applications/CS/WEB-INF/lib/cms-dependencies.jar | |
# Fix permissions | |
chmod 0775 user_projects/domains/NCLWEBDEVdom/applications/CS/WEB-INF/lib/cms-dependencies.jar | |
# Restart BEA | |
./ps_restart.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment