mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Merge pull request #1928 from balena-os/lockfiles-cleanup
Do not fail lockfile cleanup if files do not exist
This commit is contained in:
commit
3df8494f35
2
entry.sh
2
entry.sh
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user