Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add driverClassName #136

Open
orbiran88 opened this issue Jul 15, 2018 · 1 comment
Open

Add driverClassName #136

orbiran88 opened this issue Jul 15, 2018 · 1 comment

Comments

@orbiran88
Copy link

orbiran88 commented Jul 15, 2018

Hi, it's possible to add ENV for dataSource.driverClassName...

Configure Rundeck

# Check if we need to set the dataSource.driverClassName property if [ -n "${DRIVER_CLASS_NAME}" ]; then if grep -q dataSource.driverClassName /etc/rundeck/rundeck-config.properties ; then sed -i 's/dataSource\.driverClassName.*$/dataSource\.driverClassName = '${DRIVER_CLASS_NAME}'/g' /etc/rundeck/rundeck-config.properties else echo "dataSource.driverClassName = ${DRIVER_CLASS_NAME}" >> /etc/rundeck/rundeck-config.properties fi fi

@jjethwa
Copy link
Owner

jjethwa commented Jul 16, 2018

Hi @orbiran88

Sure thing! We'd also need to set the default value for DRIVER_CLASS_NAME to com.mysql.jdbc.Driver in /opt/run (line 75 or so). Do you want to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants