Merge pull request #1928 from balena-os/lockfiles-cleanup

Do not fail lockfile cleanup if files do not exist
This commit is contained in:
bulldozer-balena[bot] 2022-04-13 19:27:06 +00:00 committed by GitHub
commit 3df8494f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ export LOCKFILE_UID=65534
# Cleanup leftover Supervisor-created lockfiles from any previous processes. # Cleanup leftover Supervisor-created lockfiles from any previous processes.
# Supervisor-created lockfiles have a UID of 65534. # Supervisor-created lockfiles have a UID of 65534.
find "/mnt/root${BASE_LOCK_DIR}" -type f -user "${LOCKFILE_UID}" -name "*updates.lock" -delete find "/mnt/root${BASE_LOCK_DIR}" -type f -user "${LOCKFILE_UID}" -name "*updates.lock" -delete || true
if [ "${LIVEPUSH}" = "1" ]; then if [ "${LIVEPUSH}" = "1" ]; then
exec npx nodemon --watch src --watch typings --ignore tests -e js,ts,json \ exec npx nodemon --watch src --watch typings --ignore tests -e js,ts,json \