mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:20:09 +00:00
[Bugfix] added back sqlite symlink (#706)
This commit is contained in:
@@ -15,6 +15,27 @@ chown -R webuser:webgroup $WEBUSER_HOME
|
||||
echo "✅ Permissions fixed."
|
||||
echo ""
|
||||
|
||||
if [ ${DB_CONNECTION:="sqlite"} = "sqlite" ]; then
|
||||
# create symlinks
|
||||
echo "🔗 Creating database symlink..."
|
||||
symlinks=( \
|
||||
/var/www/html/database/database.sqlite \
|
||||
)
|
||||
|
||||
for i in "${symlinks[@]}"
|
||||
do
|
||||
if [[ -e "$i" && ! -L "$i" ]]; then
|
||||
rm -rf "$i"
|
||||
fi
|
||||
if [[ ! -L "$i" ]]; then
|
||||
ln -s /config/"$(basename "$i")" "$i"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "✅ Database symlink created."
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# Check for env file
|
||||
if [ ! -f /config/.env ]; then
|
||||
echo "🙄 Environment file not found, creating..."
|
||||
|
||||
Reference in New Issue
Block a user