mirror of
https://github.com/casjaysdevdocker/gitea
synced 2025-12-14 08:07:07 -05:00
🗃️ Update codebase 🗃️
All checks were successful
release-tag / release-image (push) Successful in 7m50s
All checks were successful
release-tag / release-image (push) Successful in 7m50s
rootfs/usr/local/etc/docker/init.d/08-gitea.sh rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
@@ -320,7 +320,7 @@ __update_conf_files() {
|
|||||||
find "$DATA_DIR" -type d -exec chmod 0777 {} \;
|
find "$DATA_DIR" -type d -exec chmod 0777 {} \;
|
||||||
chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATA_DIR" 2>/dev/null
|
chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATA_DIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
[ -f "$DATABASE_DIR/gitea.db" ] && chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR/gitea.db" 2>/dev/null
|
[ -d "$DATABASE_DIR" ] && chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR" 2>/dev/null
|
||||||
|
|
||||||
# allow custom functions
|
# allow custom functions
|
||||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||||
|
|||||||
@@ -263,8 +263,7 @@ __execute_prerun() {
|
|||||||
local status=0
|
local status=0
|
||||||
# Define actions/commands
|
# Define actions/commands
|
||||||
while [ $count -lt $max ]; do
|
while [ $count -lt $max ]; do
|
||||||
echo "Waiting for gitea to start"
|
status=$(curl -q -LSsf -o /dev/null -w '%{http_code}' --max-time 5 http://localhost 2>/dev/null)
|
||||||
status=$(curl -q -LSsf -o /dev/null -w '%{http_code}' --max-time 5 http://localhost)
|
|
||||||
if [ "$status" = "200" ]; then
|
if [ "$status" = "200" ]; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user