# 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
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?
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