commit | author | age
|
bfbd53
|
1 |
#!/bin/bash |
JK |
2 |
|
|
3 |
if [ ! -f /etc/rundeck/profile ]; then |
|
4 |
cp -Rfp /etc/rundeck-org/* /etc/rundeck/ |
|
5 |
fi |
|
6 |
|
d6614a
|
7 |
# Rundeck 3.0 - new property |
JK |
8 |
if ! grep -q -e "^rundeck.log4j.config.file" /etc/rundeck/rundeck-config.properties; then |
|
9 |
echo "rundeck.log4j.config.file = /etc/rundeck/log4j.properties" \ |
|
10 |
>> /etc/rundeck/rundeck-config.properties |
|
11 |
fi |
|
12 |
|
|
13 |
# Rundeck 2.7, 3.0 - new profile |
|
14 |
cp -fp /etc/rundeck-org/profile /etc/rundeck/profile |
|
15 |
|
bfbd53
|
16 |
chown -Rf rundeck:rundeck /etc/rundeck /var/rundeck /var/lib/rundeck |
JK |
17 |
chmod -Rf o-rwx /etc/rundeck /var/rundeck /var/lib/rundeck |
|
18 |
|
|
19 |
chown -Rf :adm /var/lib/rundeck/logs |
|
20 |
chmod g+s,o+x /var/lib/rundeck/logs |
|
21 |
|
|
22 |
. /etc/rundeck/profile |
|
23 |
|
|
24 |
su rundeck -s /bin/bash -c "$rundeckd" |