| | |
| | | cp -Rfp /etc/rundeck-org/* /etc/rundeck/ |
| | | fi |
| | | |
| | | # Rundeck 3.0 - new property |
| | | if ! grep -q -e "^rundeck.log4j.config.file" /etc/rundeck/rundeck-config.properties; then |
| | | echo "rundeck.log4j.config.file = /etc/rundeck/log4j.properties" \ |
| | | >> /etc/rundeck/rundeck-config.properties |
| | | fi |
| | | |
| | | # Rundeck 2.7, 3.0 - new profile |
| | | cp -fp /etc/rundeck-org/profile /etc/rundeck/profile |
| | | |
| | | chown -Rf rundeck:rundeck /etc/rundeck /var/rundeck /var/lib/rundeck |
| | | chmod -Rf o-rwx /etc/rundeck /var/rundeck /var/lib/rundeck |
| | | |
| | |
| | | chmod g+s,o+x /var/lib/rundeck/logs |
| | | |
| | | . /etc/rundeck/profile |
| | | |
| | | # Rundeck 2.6 to 2.7 migration - new profile file |
| | | if [ -z "$rundeckd" ]; then |
| | | mv -f /etc/rundeck/profile /etc/rundeck/profile.pre-migration |
| | | cp -f /etc/rundeck-org/profile /etc/rundeck/profile |
| | | . /etc/rundeck/profile |
| | | fi |
| | | |
| | | su rundeck -s /bin/bash -c "$rundeckd" |