fix: #79: unable to mark effectively flarum installed (#80)

pull/92/head
行旅途 2021-05-31 05:17:20 +08:00 committed by GitHub
parent a63a133a2f
commit dc2cba4361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ if [ ! -e '/etc/nginx/flarum/custom-vhost-flarum.conf' ]; then
fi
# if installation was performed before
if [ -e '/flarum/app/public/assets/rev-manifest.json' ]; then
if [ -e '/flarum/app/public/assets/rev-manifest.json' ] || [ -e '/flarum/app/public/assets/._flarum-installed.lock' ] ; then
echo "[INFO] Flarum already installed, init app..."
sed -i -e "s|<DEBUG>|${DEBUG}|g" \
@ -127,7 +127,8 @@ else
-e "s|<FLARUM_TITLE>|${FLARUM_TITLE}|g" /flarum/app/config.yml
# 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
echo "[INFO] End of flarum installation"
fi