We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13a3605 commit 3984b89Copy full SHA for 3984b89
docker/deploy/etc/s6-overlay/scripts/laravel-automations
@@ -15,6 +15,27 @@ chown -R webuser:webgroup $WEBUSER_HOME
15
echo "✅ Permissions fixed."
16
echo ""
17
18
+if [ ${DB_CONNECTION:="sqlite"} = "sqlite" ]; then
19
+ # create symlinks
20
+ echo "🔗 Creating database symlink..."
21
+ symlinks=( \
22
+ /var/www/html/database/database.sqlite \
23
+ )
24
+
25
+ for i in "${symlinks[@]}"
26
+ do
27
+ if [[ -e "$i" && ! -L "$i" ]]; then
28
+ rm -rf "$i"
29
+ fi
30
+ if [[ ! -L "$i" ]]; then
31
+ ln -s /config/"$(basename "$i")" "$i"
32
33
+ done
34
35
+ echo "✅ Database symlink created."
36
+ echo ""
37
+fi
38
39
# Check for env file
40
if [ ! -f /config/.env ]; then
41
echo "🙄 Environment file not found, creating..."
0 commit comments