fix(kickstart.sh): use `$ROOTCMD` when setting auto updates (#12526)
Ilya Mashchenko committed
Mar 28, 2022 at 16:52 UTC
1fbffa776efffb73efb788d1251be7c642428123
1 file changed
+2
-2
packaging/installer/kickstart.sh
+2
-2
@@ -936,11 +936,11 @@ set_auto_updates() {
936
# This first case is for catching using a new kickstart script with an old build. It can be safely removed after v1.34.0 is released.
937
if ! grep -q '\-\-enable-auto-updates' ${updater}; then
938
echo
939
- elif ! ${updater} --enable-auto-updates "${NETDATA_AUTO_UPDATE_TYPE}"; then
939
+ elif ! ${ROOTCMD} ${updater} --enable-auto-updates "${NETDATA_AUTO_UPDATE_TYPE}"; then
940
warning "Failed to enable auto updates. Netdata will still work, but you will need to update manually."
941
fi
942
else
943
- ${updater} --disable-auto-updates
943
+ ${ROOTCMD} ${updater} --disable-auto-updates
944
fi
945
}
946