Fix incorrect path when setting file permissions for data directory
authorAdam Dullage <redacted>
Wed, 24 Jul 2024 12:16:31 +0000 (13:16 +0100)
committerAdam Dullage <redacted>
Wed, 24 Jul 2024 17:56:11 +0000 (18:56 +0100)
(cherry picked from commit 3eb4469c26d656308984de1737893fe460bfd466)

entrypoint.sh

index 3ab186a59acd560b694e48b9bdf6e41da9bc61fa..4d52468c046c9acdae801d76b4717910a29d05da 100644 (file)
@@ -31,7 +31,7 @@ flatnotes_command="python -m \
 
 if [ `id -u` -eq 0 ] && [ `id -g` -eq 0 ]; then
     echo Setting file permissions...
-    chown -R ${PUID}:${PGID} ./
+    chown -R ${PUID}:${PGID} ${FLATNOTES_PATH}
 
     echo Starting flatnotes as user ${PUID}...
     exec ${EXEC_TOOL} ${PUID}:${PGID} ${flatnotes_command}
git clone https://git.99rst.org/PROJECT