Skip to content

Commit

Permalink
Issue #46: adding force to symlink creation (as safety net)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Feb 9, 2024
1 parent 573dca3 commit b8d30d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions file-manager/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ then
cp ../index.php index.php
cp ../config.php config.php
cp ../manager_auth.php manager_auth.php
ln -s manager_auth.php auth.php
ln -sf manager_auth.php auth.php
# rewrite conf in /admin/ faking
if [[ "$APP_URL" != "" ]]
then
ADMIN_APP_URL="${APP_URL}/admin/"
fi
APP_URL="$ADMIN_APP_URL" ACCESS_MODE=manager php83 ../conf-rewrite.php
cd ..
ln -s listing_auth.php auth.php
ln -sf listing_auth.php auth.php
fi

# rewrite config for single-app mode
Expand All @@ -25,11 +25,11 @@ php83 ./conf-rewrite.php
echo "configuring for ${ACCESS_MODE}"
if [[ "$ACCESS_MODE" = "listing" ]]
then
ln -s listing_auth.php auth.php
ln -sf listing_auth.php auth.php

elif [[ "$ACCESS_MODE" = "manager" ]]
then
ln -s manager_auth.php auth.php
ln -sf manager_auth.php auth.php
fi

mkdir -p /data/.php
Expand Down

0 comments on commit b8d30d8

Please sign in to comment.