@@ -14,26 +14,26 @@ if [ -f /usr/bin/openitcockpit-agent ]; then
14
14
if [ -d /lib/systemd/system/ ]; then
15
15
# Debian / Ubuntu / Arch
16
16
if [ ! -f /lib/systemd/system/openitcockpit-agent.service ]; then
17
- ln /etc/openitcockpit-agent/init/openitcockpit-agent.service /lib/systemd/system/openitcockpit-agent.service
17
+ ln -s /etc/openitcockpit-agent/init/openitcockpit-agent.service /lib/systemd/system/openitcockpit-agent.service
18
18
fi
19
19
elif [ -d /usr/lib/systemd/system/ ]; then
20
20
# RedHat / Suse
21
21
if [ ! -f /usr/lib/systemd/system/openitcockpit-agent.service ]; then
22
- ln /etc/openitcockpit-agent/init/openitcockpit-agent.service /usr/lib/systemd/system/openitcockpit-agent.service
22
+ ln -s /etc/openitcockpit-agent/init/openitcockpit-agent.service /usr/lib/systemd/system/openitcockpit-agent.service
23
23
fi
24
24
fi
25
-
25
+
26
26
systemctl daemon-reload
27
27
systemctl start openitcockpit-agent
28
28
systemctl enable openitcockpit-agent
29
29
else
30
-
30
+
31
31
enableConfig=" 0"
32
32
if [ ! -f /etc/init.d/openitcockpit-agent ]; then
33
33
enableConfig=" 1"
34
- ln /etc/openitcockpit-agent/init/openitcockpit-agent.init /etc/init.d/openitcockpit-agent
34
+ ln -s /etc/openitcockpit-agent/init/openitcockpit-agent.init /etc/init.d/openitcockpit-agent
35
35
fi
36
-
36
+
37
37
if [ " $enableConfig " == " 1" ]; then
38
38
if [ -x " $( command -v update-rc.d) " ]; then
39
39
# Debian / Ubuntu
@@ -44,7 +44,7 @@ if [ -f /usr/bin/openitcockpit-agent ]; then
44
44
chkconfig openitcockpit-agent on
45
45
fi
46
46
fi
47
-
47
+
48
48
service openitcockpit-agent start
49
49
fi
50
50
@@ -78,7 +78,7 @@ if [ -f /Applications/openitcockpit-agent/openitcockpit-agent ]; then
78
78
if [ " $enableConfig " == " 1" ]; then
79
79
/bin/launchctl load /Library/LaunchDaemons/com.it-novum.openitcockpit.agent.plist
80
80
fi
81
-
81
+
82
82
if [ ! -d " /Library/Logs/openitcockpit-agent" ]; then
83
83
mkdir -p /Library/Logs/openitcockpit-agent
84
84
fi
0 commit comments