mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
websoft9
This commit is contained in:
parent
bf358f0014
commit
2b8ec48acf
|
@ -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"]
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue