logic bugs...

This commit is contained in:
2025-06-13 12:09:30 -05:00
parent bbe7500e11
commit 48a8dec064

View File

@ -86,15 +86,15 @@ echo "Now running $FUNCNAME...."
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/aliases > /etc/aliases
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/rsyslog.conf> /etc/rsyslog.conf
export ROOT_SSH_DIR="/root/.ssh/"
export LOCALUSER_SSH_DIR="/home/localuser/.ssh/"
export ROOT_SSH_DIR="/root/.ssh"
export LOCALUSER_SSH_DIR="/home/localuser/.ssh"
if [ ! -d "$ROOT_SSH_DIR" ]; then
if [ ! -d $ROOT_SSH_DIR ]; then
mkdir /root/.ssh/
fi
if [ ! -d "$LOCALUSER_SSH_DIR" ]; then
mkdir /root/.ssh/
if [ ! -d $LOCALUSER_SSH_DIR ]; then
mkdir /home/localuser/.ssh/
fi
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys> /root/.ssh/authorized_keys && chmod 400 /root/.ssh/authorized_keys