1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

Disable auto-migrate in docker container (#5730)

This commit is contained in:
techknowlogick 2019-01-17 22:31:14 -05:00 committed by GitHub
parent 7d65ddf5e1
commit ec9331510c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,12 +30,6 @@ for FOLDER in /data/gitea/conf /data/gitea/log /data/git /data/ssh; do
mkdir -p ${FOLDER}
done
if [ -f /data/gitea/conf/app.ini ]; then
echo "Found app.ini config file, migrating database"
chown -R ${USER_UID}:${USER_GID} /data/git /data/gitea
su - ${USER} -c gitea migrate -c /data/gitea/conf/app.ini
fi
if [ $# -gt 0 ]; then
exec "$@"
else