mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-12 07:56:50 +02:00
Symlink storage
This commit is contained in:
parent
404345add1
commit
165668f1e5
@ -16,6 +16,14 @@ if [ "${DB_CONNECTION}" = "sqlite" ]; then
|
|||||||
ln -sF /2fauth/database.sqlite /srv/database/database.sqlite
|
ln -sF /2fauth/database.sqlite /srv/database/database.sqlite
|
||||||
fi
|
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 start
|
||||||
sudo service php7.3-fpm status
|
sudo service php7.3-fpm status
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user