logic bugs...
This commit is contained in:
10
newSrv.sh
10
newSrv.sh
@ -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
|
||||
|
Reference in New Issue
Block a user