File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
if command -v systemctl > /dev/null 2>&1 ; then
18
- systemctl daemon-reload
18
+ systemctl daemon-reload || :
19
19
systemctl enable otelcol-contrib.service
20
20
if [ -f /etc/otelcol-contrib/config.yaml ]; then
21
- systemctl restart otelcol-contrib.service
21
+ systemctl restart otelcol-contrib.service || :
22
22
fi
23
23
fi
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
if command -v systemctl > /dev/null 2>&1 ; then
18
- systemctl daemon-reload
18
+ systemctl daemon-reload || :
19
19
systemctl enable otelcol-otlp.service
20
20
if [ -f /etc/otelcol-otlp/config.yaml ]; then
21
- systemctl restart otelcol-otlp.service
21
+ systemctl restart otelcol-otlp.service || :
22
22
else
23
23
echo " Make sure to configure otelcol-otlp by creating /etc/otelcol-otlp/config.yaml"
24
24
fi
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
17
17
if command -v systemctl > /dev/null 2>&1 ; then
18
- systemctl daemon-reload
18
+ systemctl daemon-reload || :
19
19
systemctl enable otelcol.service
20
20
if [ -f /etc/otelcol/config.yaml ]; then
21
- systemctl restart otelcol.service
21
+ systemctl restart otelcol.service || :
22
22
fi
23
23
fi
You can’t perform that action at this time.
0 commit comments