Skip to content

Commit

Permalink
fix: locale settings to make urandom with tr work on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
markusrf committed Nov 7, 2023
1 parent 86e450d commit 84efc89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manage-multijuicer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ MANAGE_MONITORING=${MANAGE_MONITORING:-0}
# Whether to configure the CTFd deployment. Defaults to true
MANAGE_CTFD=${MANAGE_CTFD:-1}

# Change locale to make "</dev/urandom tr -dc" work on Mac
OS=`uname`
if [ "$OS" = 'Darwin' ]; then
export LC_CTYPE=C
fi

# Whether to delete PVCs (Persistent Volume Claims) when running 'down'
# If no MYSQL/Redis password is supplied, it will be random-generated, and as such will result in failure when running 'up',
# as a new password will be generated which does not match the persisted database password.
Expand Down

0 comments on commit 84efc89

Please sign in to comment.