From 81d72887a78d25faf6d0464d011f9ad9a8c3a9d2 Mon Sep 17 00:00:00 2001 From: Tho Ho Date: Mon, 6 Sep 2021 15:58:06 +0800 Subject: [PATCH] Cleanup startup.sh --- crushftp/startup.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crushftp/startup.sh b/crushftp/startup.sh index a769ded..ffbae7c 100644 --- a/crushftp/startup.sh +++ b/crushftp/startup.sh @@ -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..."