Added display and API for SSH fingerprints

This commit is contained in:
2023-09-29 02:15:06 -04:00
parent 8649c75eac
commit 89928841bc
10 changed files with 257 additions and 148 deletions

View File

@@ -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