Skip to content

Commit

Permalink
WIP post-Codemash
Browse files Browse the repository at this point in the history
  • Loading branch information
ryapric committed Feb 4, 2024
1 parent 515d0df commit 3083637
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions linux/instructions/challenge_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ a Go binary.

Take note of any error messages when trying to build it, and fix any issues you
find.

NOTE APP NEEDS TO BE CALLED `app`, NOT `main`
3 changes: 2 additions & 1 deletion linux/instructions/challenge_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ look at the `/opt/app` directory again, you may have noticed that there is a
correctly-installed app binary.

Once you do that, be sure to check the `systemd` and/or `journald` logs of the
new `app-deb.service` to make sure it's running successfully!
new `app-deb.service` to make sure it's running successfully! (and, just like
the last one, that it would keep running after a reboot)
2 changes: 2 additions & 0 deletions linux/instructions/challenge_5.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ number is:

1. *Not* `8080`

1. *Not* managed by the `iptables` tool.

Finally, you will want to figure out what firewall issue your own server has
that seems to be causing problems, and fix it.
4 changes: 2 additions & 2 deletions linux/scripts/linux-workshop-admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ _score-for-challenge() {
# challenges.
_get-last-challenge-completed() {
local last_challenge_completed
last_challenge_completed="$(find /home/appuser -type f -name '*.md' | grep -E -o '[0-9]+' | sort -h | tail -n1)"
max_possible_challenge_completed="$(find "${wsroot}"/instructions -type f -name '*.md' | grep -E -o '[0-9]+' | sort -h | tail -n1)"
last_challenge_completed="$(find /home/appuser -type f -name 'challenge_*.md' | grep -E -o '[0-9]+' | sort -h | tail -n1)"
max_possible_challenge_completed="$(find "${wsroot}"/instructions -type f -name 'challenge_*.md' | grep -E -o '[0-9]+' | sort -h | tail -n1)"
if [[ -f /home/appuser/congrats.md ]] ; then
last_challenge_completed="${max_possible_challenge_completed}"
else
Expand Down

0 comments on commit 3083637

Please sign in to comment.