diff --git a/rootfs/root/docker/setup/05-custom.sh b/rootfs/root/docker/setup/05-custom.sh index 105d215..cb87519 100755 --- a/rootfs/root/docker/setup/05-custom.sh +++ b/rootfs/root/docker/setup/05-custom.sh @@ -39,7 +39,8 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Main script echo "Dowloading gitea from $GITEA_URL" -if curl -q -LSsf "$GITEA_URL" -o "$GITEA_BIN_FILE"; then +if curl -q -LSsf "$GITEA_URL" -o "/tmp/gitea.$$"; then + mv -fv "/tmp/gitea.$$" "$GITEA_BIN_FILE" echo "gitea has been installed to: $GITEA_BIN_FILE" chmod +x "$GITEA_BIN_FILE" if [ -d "/etc/sudoers.d" ]; then @@ -51,7 +52,8 @@ else exitCode=$((exitCode++)) fi echo "Downloading act_runner from $ACT_URL" -if curl -q -LSsf "$ACT_URL" -o "$ACT_BIN_FILE"; then +if curl -q -LSsf "$ACT_URL" -o "/tmp/act_runner.$$"; then + mv -fv "/tmp/act_runner.$$" "$ACT_BIN_FILE" echo "act_runner has been installed to: $ACT_BIN_FILE" chmod +x "$ACT_BIN_FILE" else