docker: stop modifying file permission before migrating database (#5707)
This commit is contained in:
parent
abb364f442
commit
f59bfe893a
|
@ -32,7 +32,6 @@ done
|
||||||
|
|
||||||
if [ -f /data/gitea/conf/app.ini ]; then
|
if [ -f /data/gitea/conf/app.ini ]; then
|
||||||
echo "Found app.ini config file, migrating database"
|
echo "Found app.ini config file, migrating database"
|
||||||
chmod 644 /data/gitea/conf/app.ini
|
|
||||||
chown -R ${USER_UID}:${USER_GID} /data/git /data/gitea
|
chown -R ${USER_UID}:${USER_GID} /data/git /data/gitea
|
||||||
su - ${USER} -c gitea migrate -c /data/gitea/conf/app.ini
|
su - ${USER} -c gitea migrate -c /data/gitea/conf/app.ini
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue