This commit is contained in:
qiaofeng1227 2023-10-16 09:30:55 +08:00
parent bf358f0014
commit 2b8ec48acf
2 changed files with 4 additions and 5 deletions

View file

@ -48,6 +48,5 @@ RUN rm -rf apphub/docs apphub/tests library.zip plugin-appstore && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc /usr/share/doc-base
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]

View file

@ -5,10 +5,10 @@ set -e
try_times=3
# set git user and email
for ((i=0; i<$try_times; i++)); do
(
username=$(apphub getconfig --section gitea --key user_name)
email=$(apphub getconfig --section gitea --key email)
) || true
set +e
username=$(apphub getconfig --section gitea --key user_name)
email=$(apphub getconfig --section gitea --key email)
set -e
if [ -n "$username" ] && [ -n "$email" ]; then
break
fi