Skip to content

Instantly share code, notes, and snippets.

@jacobben85 jacobben85/wildfly.conf.sh
Last active Feb 15, 2017

Embed
What would you like to do?
#!/bin/sh -e
sed -i "s/# JAVA_HOME=\"\/usr\/lib\/jvm\/default-java\"/JAVA_HOME=\"\/usr\/lib\/jvm\/java-8-oracle\"/" ./wildfly.conf.bk
sed -i "s/# JBOSS_HOME=\"\/opt\/wildfly\"/JBOSS_HOME=\"\/opt\/wildfly\"/" ./wildfly.conf.bk
sed -i "s/# JBOSS_USER=wildfly/JBOSS_USER=wildfly/" ./wildfly.conf.bk
sed -i "s/# JBOSS_MODE=standalone/JBOSS_MODE=standalone/" ./wildfly.conf.bk
sed -i "s/# JBOSS_CONFIG=standalone.xml/JBOSS_CONFIG=standalone.xml/" ./wildfly.conf.bk
sed -i "s/# STARTUP_WAIT=60/STARTUP_WAIT=60/" ./wildfly.conf.bk
sed -i "s/# SHUTDOWN_WAIT=60/SHUTDOWN_WAIT=60/" ./wildfly.conf.bk
sed -i "s/# JBOSS_CONSOLE_LOG=\"\/var\/log\/wildfly\/console.log\"/JBOSS_CONSOLE_LOG=\"\/var\/log\/wildfly\/console.log\"/" ./wildfly.conf.bk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.