Skip to content

Commit

Permalink
Cleanup startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thohng committed Sep 6, 2021
1 parent f93a09c commit 81d7288
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crushftp/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ if [ -z "$ADMIN_USER" ]; then
ADMIN_USER=crushadmin
fi

if [ -z "$ADMIN_PASSWORD" ] && [ -f admin_user_set ]; then
ADMIN_PASSWORD="NOT DISPLAYED!"
elif [ -z "$ADMIN_PASSWORD" ] && [ ! -f admin_user_set ]; then
ADMIN_PASSWORD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
fi

if [[ ! -d "users/MainUsers/$ADMIN_USER" ]] || [[ ! -f admin_user_set ]] ; then
log "Creating admin user $ADMIN_USER..."

Expand Down

0 comments on commit 81d7288

Please sign in to comment.