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 |
|
|
7 |
chown -Rf rundeck:rundeck /etc/rundeck /var/rundeck /var/lib/rundeck |
|
8 |
chmod -Rf o-rwx /etc/rundeck /var/rundeck /var/lib/rundeck |
|
9 |
|
|
10 |
chown -Rf :adm /var/lib/rundeck/logs |
|
11 |
chmod g+s,o+x /var/lib/rundeck/logs |
|
12 |
|
|
13 |
. /etc/rundeck/profile |
|
14 |
|
012faf
|
15 |
# Rundeck 2.6 to 2.7 migration - new profile file |
JK |
16 |
if [ -z "$rundeckd" ]; then |
|
17 |
mv -f /etc/rundeck/profile /etc/rundeck/profile.pre-migration |
|
18 |
cp -f /etc/rundeck-org/profile /etc/rundeck/profile |
|
19 |
. /etc/rundeck/profile |
|
20 |
fi |
bfbd53
|
21 |
|
JK |
22 |
su rundeck -s /bin/bash -c "$rundeckd" |