diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..84c9119 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": [ + "Bash(script-lint *)" + ] + } +} diff --git a/rootfs/root/docker/setup/05-custom.sh b/rootfs/root/docker/setup/05-custom.sh index cceb04e..df0e532 100755 --- a/rootfs/root/docker/setup/05-custom.sh +++ b/rootfs/root/docker/setup/05-custom.sh @@ -51,7 +51,7 @@ if curl -q -LSsf "$GITEA_URL" -o "/tmp/gitea.$$"; then fi else echo "Failed to download gitea" >&2 - exitCode=$((exitCode++)) + exitCode=$((exitCode + 1)) fi echo "Downloading act_runner from $ACT_URL" if curl -q -LSsf "$ACT_URL" -o "/tmp/act_runner.$$"; then @@ -60,7 +60,7 @@ if curl -q -LSsf "$ACT_URL" -o "/tmp/act_runner.$$"; then chmod +x "$ACT_BIN_FILE" else echo "Failed to download act_runner" >&2 - exitCode=$((exitCode++)) + exitCode=$((exitCode + 1)) fi [ -x "$ACT_BIN_FILE" ] && [ -x "$GITEA_BIN_FILE" ] && exitCode=0 # - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 8020d67..d8b2ef5 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -9,7 +9,7 @@ # @@Copyright : Copyright: (c) 2026 Jason Hempstead, Casjays Developments # @@Created : Sunday, May 24, 2026 11:58 EDT # @@File : entrypoint.sh -# @@Description : Entrypoint file for archlinux +# @@Description : Entrypoint file for gitea # @@Changelog : New script # @@TODO : Better documentation # @@Other : @@ -39,7 +39,7 @@ PATH="/usr/local/etc/docker/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin" # - - - - - - - - - - - - - - - - - - - - - - - - - # Set bash options SCRIPT_FILE="$0" -CONTAINER_NAME="archlinux" +CONTAINER_NAME="gitea" SCRIPT_NAME="${SCRIPT_FILE##*/}" CONTAINER_NAME="${ENV_CONTAINER_NAME:-$CONTAINER_NAME}" # - - - - - - - - - - - - - - - - - - - - - - - - - @@ -294,7 +294,7 @@ fi if [ "$ENTRYPOINT_FIRST_RUN" != "no" ]; then if [ "$CONFIG_DIR_INITIALIZED" = "no" ] || [ "$DATA_DIR_INITIALIZED" = "no" ]; then if [ "$ENTRYPOINT_MESSAGE" = "yes" ]; then - echo "Executing entrypoint script for archlinux" + echo "Executing entrypoint script for gitea" fi fi # - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/rootfs/usr/local/etc/docker/init.d/08-gitea.sh b/rootfs/usr/local/etc/docker/init.d/08-gitea.sh index 2cf12da..1bdb12f 100755 --- a/rootfs/usr/local/etc/docker/init.d/08-gitea.sh +++ b/rootfs/usr/local/etc/docker/init.d/08-gitea.sh @@ -322,7 +322,7 @@ __update_conf_files() { # - - - - - - - - - - - - - - - - - - - - - - - - - # 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" [ "$COPY_SSHD_CONF" = "yes" ] && copy "/etc/ssh/sshd_config" "/config/ssh/" if [ ! -f "/config/ssh/ssh_host_ed25519_key" ]; then