From 165668f1e52dfa36fedfc677b62a05a5a0626971 Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (laptop)" Date: Sat, 31 Jul 2021 09:51:44 -0400 Subject: [PATCH] Symlink storage --- docker/entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 23a995e9..296c103b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -16,6 +16,14 @@ if [ "${DB_CONNECTION}" = "sqlite" ]; then ln -sF /2fauth/database.sqlite /srv/database/database.sqlite fi +# Inject storage in /2fauth and use it with a symlink +if [ ! -d /2fauth/storage ]; then + mv /srv/storage /2fauth/storage +else + rm -r /srv/storage +fi +ln -sF /2fauth/storage /srv/storage + sudo service php7.3-fpm start sudo service php7.3-fpm status