added null pointers
This commit is contained in:
4
debian/debian-configure-sshd.sh
vendored
4
debian/debian-configure-sshd.sh
vendored
@@ -75,7 +75,7 @@ isInFile=$(cat /home/akanealw/.ssh/config | grep -c "*root")
|
|||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
then
|
then
|
||||||
cp /home/akanealw/.ssh/config /home/akanealw/.ssh/config.bak > /dev/null 2>&1
|
cp /home/akanealw/.ssh/config /home/akanealw/.ssh/config.bak > /dev/null 2>&1
|
||||||
mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old
|
mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old > /dev/null 2>&1
|
||||||
echo "" >> /home/akanealw/.ssh/config
|
echo "" >> /home/akanealw/.ssh/config
|
||||||
echo "" >> /home/akanealw/.ssh/config
|
echo "" >> /home/akanealw/.ssh/config
|
||||||
echo "Host *-root" >> /home/akanealw/.ssh/config
|
echo "Host *-root" >> /home/akanealw/.ssh/config
|
||||||
@@ -96,7 +96,7 @@ isInFile=$(cat /root/.ssh/config | grep -c "*root")
|
|||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
then
|
then
|
||||||
cp /root/.ssh/config /root/.ssh/config.bak > /dev/null 2>&1
|
cp /root/.ssh/config /root/.ssh/config.bak > /dev/null 2>&1
|
||||||
mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old
|
mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old > /dev/null 2>&1
|
||||||
echo "" >> /root/.ssh/config
|
echo "" >> /root/.ssh/config
|
||||||
echo "" >> /root/.ssh/config
|
echo "" >> /root/.ssh/config
|
||||||
echo "Host *-root" >> /root/.ssh/config
|
echo "Host *-root" >> /root/.ssh/config
|
||||||
|
|||||||
Reference in New Issue
Block a user