@@ -1,23 +1,14 | |||
|
1 | 1 | #!/bin/sh -e |
|
2 | 2 | # |
|
3 | 3 | # rc.local |
|
4 | 4 | # |
|
5 | 5 | # This script is executed at the end of each multiuser runlevel. |
|
6 | 6 | # Make sure that the script will "exit 0" on success or any other |
|
7 | 7 | # value on error. |
|
8 | 8 | # |
|
9 | 9 | # In order to enable or disable this script just change the execution |
|
10 | 10 | # bits. |
|
11 | 11 | # |
|
12 | 12 | # By default this script does nothing. |
|
13 | 13 | |
|
14 | if [ ! -e /var/cfengine/policy_server.dat ] ; then | |
|
15 | while ! ping -c 1 -q zcu.cz; do sleep 2s; done | |
|
16 | rm -f /var/cfengine/ppkeys/* | |
|
17 | /var/cfengine/bin/cf-key | |
|
18 | /var/cfengine/bin/cf-agent --bootstrap cf.civ.zcu.cz | |
|
19 | /var/cfengine/bin/cf-agent -Kf update.cf -D FORCE_update | |
|
20 | /var/cfengine/bin/cf-agent -Kf update.cf -D FORCE_update | |
|
21 | fi | |
|
22 | ||
|
23 | 14 | exit 0 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant