Skip to content

Commit

Permalink
[DOCKER] Partial roll back of changes made in 87d8d08
Browse files Browse the repository at this point in the history
It is possible that a write to the database was incomplete when the container stopped. This would prevent it from being written when it is next started.
  • Loading branch information
Josh5 committed Dec 17, 2021
1 parent 291ae52 commit 655b18b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docker/root/etc/services.d/unmanic/run
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,5 @@ if [[ "${DEBUGGING}" == 'true' ]]; then
unmanic_params="--dev ${unmanic_params}"
fi

# Add fix for locked DB on container start
rm -f /config/.unmanic/config/unmanic.db-*
sqlite3 /config/.unmanic/config/unmanic.db "SELECT count(*) FROM sqlite_master;"

chmod +x /usr/bin/unmanic
exec s6-setuidgid root /usr/bin/unmanic "${unmanic_params}"

0 comments on commit 655b18b

Please sign in to comment.