Added display and API for SSH fingerprints
This commit is contained in:
@@ -17,7 +17,7 @@ if [ "$EUID" -ne 0 ];then
|
||||
fi
|
||||
|
||||
#echo $1 >> $LOGFILE
|
||||
# If not exists, create new user with
|
||||
# If not exists, create new user with
|
||||
|
||||
if [[ "$1" =~ ^[a-zA-Z0-9][a-zA-Z0-9-]+$ ]]; then
|
||||
echo "Valid username: \"$1\"" >> $LOGFILE
|
||||
@@ -27,6 +27,7 @@ if [[ "$1" =~ ^[a-zA-Z0-9][a-zA-Z0-9-]+$ ]]; then
|
||||
# User Exists
|
||||
echo "\"$1\" Exists" >> $LOGFILE
|
||||
else
|
||||
mkdir -p /htusers
|
||||
useradd -G webadd -m -b /htusers -s /usr/bin/bash --gid 1004 "$1"
|
||||
ln -s "/htusers/$1/public_gemini /var/gemini/$1"
|
||||
echo "Added \"$1\" to the system" >> $LOGFILE
|
||||
|
Reference in New Issue
Block a user