Reset the systemd-run service in case it failed earlier

systemd will refuse to run a transient unit if one run
with the same unit name failed earlier
This commit is contained in:
Johannes
2016-11-02 10:56:53 +01:00
parent 15f7ada958
commit 908aa6f426

View File

@@ -27,6 +27,9 @@ readonly data="${2}"
echo "Updating Cloudron with ${sourceTarballUrl}"
echo "${data}"
echo "=> reset service ${UPDATER_SERVICE} status in case it failed"
systemctl reset-failed "${UPDATER_SERVICE}"
# Save user data in file, to avoid argument length limit with systemd-run
echo "${data}" > "${DATA_FILE}"