Skip to content

Commit 5a2917a

Browse files
committed
fix influxdb2 command
1 parent bc2a44f commit 5a2917a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mycodo/scripts/upgrade_commands.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ case "${1:-''}" in
474474
dpkg -i "${INSTALL_FILE}"
475475
rm -rf "${INSTALL_FILE}"
476476

477-
service influxdb restart
477+
systemctl restart influxd
478478
else
479479
printf "Correct version of InfluxDB currently installed (v${CORRECT_VERSION_INSTALL}).\n"
480480
fi
@@ -492,7 +492,7 @@ case "${1:-''}" in
492492
dpkg -i "${CLIENT_FILE}"
493493
rm -rf "${CLIENT_FILE}"
494494

495-
service influxdb restart
495+
systemctl restart influxd
496496
else
497497
printf "Correct version of InfluxDB-Client currently installed (v${CORRECT_VERSION_CLI}).\n"
498498
fi

0 commit comments

Comments
 (0)