mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 23:23:06 -05:00
🗃️ Committing everything that changed 🗃️
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:
parent
7d896d5e3e
commit
d1b7bde068
@ -109,7 +109,7 @@ SERVICE_GROUP="gitea" # Set the service group
|
|||||||
# execute command variables - keep single quotes variables will be expanded later
|
# execute command variables - keep single quotes variables will be expanded later
|
||||||
EXEC_CMD_BIN='gitea' # command to execute
|
EXEC_CMD_BIN='gitea' # command to execute
|
||||||
EXEC_CMD_ARGS='web ' # command arguments
|
EXEC_CMD_ARGS='web ' # command arguments
|
||||||
EXEC_CMD_ARGS+='--port $SERVICE_PORT --config $CONF_DIR/app.ini ' # command arguments
|
EXEC_CMD_ARGS+='--port $SERVICE_PORT --config $ETC_DIR/app.ini ' # command arguments
|
||||||
EXEC_CMD_ARGS+='--custom-path $CONF_DIR/custom --work-path $DATA_DIR ' # command arguments
|
EXEC_CMD_ARGS+='--custom-path $CONF_DIR/custom --work-path $DATA_DIR ' # command arguments
|
||||||
EXEC_PRE_SCRIPT='' # execute script before
|
EXEC_PRE_SCRIPT='' # execute script before
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -264,7 +264,7 @@ __update_conf_files() {
|
|||||||
# define actions
|
# define actions
|
||||||
[ -d " /config/ssh" ] || mkdir -p "/config/ssh"
|
[ -d " /config/ssh" ] || mkdir -p "/config/ssh"
|
||||||
[ -d "$DATA_DIR/ssh" ] || mkdir -p "$DATA_DIR/ssh"
|
[ -d "$DATA_DIR/ssh" ] || mkdir -p "$DATA_DIR/ssh"
|
||||||
[ "$COPY_SSHD_CONF" = "yes" ] && Copy "/etc/ssh/sshd_config" "/config/ssh/"
|
[ "$COPY_SSHD_CONF" = "yes" ] && copy "/etc/ssh/sshd_config" "/config/ssh/"
|
||||||
if [ ! -f /config/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -f /config/ssh/ssh_host_ed25519_key ]; then
|
||||||
echo "Generating /config/ssh/ssh_host_ed25519_key..."
|
echo "Generating /config/ssh/ssh_host_ed25519_key..."
|
||||||
ssh-keygen -t ed25519 -f /config/ssh/ssh_host_ed25519_key -N "" >/dev/null &&
|
ssh-keygen -t ed25519 -f /config/ssh/ssh_host_ed25519_key -N "" >/dev/null &&
|
||||||
|
@ -191,7 +191,9 @@ __execute_prerun() {
|
|||||||
__init_config_etc
|
__init_config_etc
|
||||||
|
|
||||||
# Define other actions/commands
|
# Define other actions/commands
|
||||||
|
while :; do
|
||||||
|
pgrep gitea && break || { echo "Waiting for gitea to start before continuing" >&2 && sleep 60; }
|
||||||
|
done
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Run any pre-execution checks
|
# Run any pre-execution checks
|
||||||
|
Loading…
Reference in New Issue
Block a user