chore: move _flarum-installed.lock from public/assets to storage
parent
a47a8ab49e
commit
e72f2623d5
|
@ -66,7 +66,7 @@ if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if installation was performed before
|
# if installation was performed before
|
||||||
if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/public/assets/._flarum-installed.lock' ] ; then
|
if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/storage/._flarum-installed.lock' ] ; then
|
||||||
echo "[INFO] Flarum already installed, init app..."
|
echo "[INFO] Flarum already installed, init app..."
|
||||||
|
|
||||||
sed -i -e "s|<DEBUG>|${DEBUG}|g" \
|
sed -i -e "s|<DEBUG>|${DEBUG}|g" \
|
||||||
|
@ -119,7 +119,7 @@ else
|
||||||
|
|
||||||
# Install flarum
|
# Install flarum
|
||||||
su-exec "${UID}:${GID}" php /flarum/app/flarum install --file=/flarum/app/config.yml \
|
su-exec "${UID}:${GID}" php /flarum/app/flarum install --file=/flarum/app/config.yml \
|
||||||
&& touch /flarum/app/public/assets/._flarum-installed.lock
|
&& touch /flarum/app/storage/._flarum-installed.lock
|
||||||
|
|
||||||
echo "[INFO] End of flarum installation"
|
echo "[INFO] End of flarum installation"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue