fix: docker statup permission issue (#1709)
This commit is contained in:
10
scripts/entrypoint.sh
Normal file
10
scripts/entrypoint.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Creating folders in volume
|
||||
mkdir -p /appdata/db
|
||||
mkdir -p /appdata/redis
|
||||
|
||||
chown -R nextjs:nodejs /appdata
|
||||
|
||||
su-exec 1001:1001 "$@"
|
||||
@@ -1,7 +1,3 @@
|
||||
# Creating folders in volume
|
||||
mkdir -p /appdata/db
|
||||
mkdir -p /appdata/redis
|
||||
|
||||
# Run migrations
|
||||
if [ $DB_MIGRATIONS_DISABLED = "true" ]; then
|
||||
echo "DB migrations are disabled, skipping"
|
||||
|
||||
Reference in New Issue
Block a user