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/aliases > /etc/aliases
|
||||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/rsyslog.conf> /etc/rsyslog.conf
|
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/rsyslog.conf> /etc/rsyslog.conf
|
||||||
|
|
||||||
export ROOT_SSH_DIR="/root/.ssh/"
|
export ROOT_SSH_DIR="/root/.ssh"
|
||||||
export LOCALUSER_SSH_DIR="/home/localuser/.ssh/"
|
export LOCALUSER_SSH_DIR="/home/localuser/.ssh"
|
||||||
|
|
||||||
if [ ! -d "$ROOT_SSH_DIR" ]; then
|
if [ ! -d $ROOT_SSH_DIR ]; then
|
||||||
mkdir /root/.ssh/
|
mkdir /root/.ssh/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$LOCALUSER_SSH_DIR" ]; then
|
if [ ! -d $LOCALUSER_SSH_DIR ]; then
|
||||||
mkdir /root/.ssh/
|
mkdir /home/localuser/.ssh/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys> /root/.ssh/authorized_keys && chmod 400 /root/.ssh/authorized_keys
|
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