File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ if [ "$INSTALL_SERVICE" = "y" ]; then
374
374
printf ${PMPT} " Installing AWS IoT Device Client..."
375
375
if command -v " systemctl" & > /dev/null; then
376
376
systemctl stop aws-iot-device-client.service || true
377
+ sed -i " s#/etc/.aws-iot-device-client/aws-iot-device-client.conf#$CONF_OUTPUT_PATH #g" $SERVICE_FILE
377
378
cp " $SERVICE_FILE " /etc/systemd/system/aws-iot-device-client.service
378
379
if [ " $SERVICE_DEBUG " = " y" ]; then
379
380
echo " $DEBUG_SCRIPT " | tee /sbin/aws-iot-device-client > /dev/null
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ Wants=network-online.target
4
4
After =network.target network-online.target
5
5
6
6
[Service]
7
- ExecStart =/sbin/aws-iot-device-client --config-file /etc/.aws-iot-device-client/aws-iot-device-client.conf
7
+ Environment ="CONF_PATH=/etc/.aws-iot-device-client/aws-iot-device-client.conf"
8
+ ExecStart =/sbin/aws-iot-device-client --config-file $CONF_PATH
8
9
9
10
[Install]
10
- WantedBy =multi-user.target
11
+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments