testing
This commit is contained in:
18
debian/debian-essentials.sh
vendored
18
debian/debian-essentials.sh
vendored
@@ -256,10 +256,20 @@ if [[ -f /opt/cronicle/conf/config.json ]]
|
|||||||
echo "Cronicle worker installed."
|
echo "Cronicle worker installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm /home/akanealw/test-debian-configure-sshd.sh > /dev/null 2>&1
|
|
||||||
wget -qO /home/akanealw/test-debian-configure-sshd.sh http://192.168.1.50/scripts/debian/test-debian-configure-sshd.sh
|
# download sshd configuration test script
|
||||||
chown akanealw:akanealw /home/akanealw/test-debian-configure-sshd.sh
|
if [ "$EUID" -ne 0 ]
|
||||||
chmod +x /home/akanealw/test-debian-configure-sshd.sh
|
then
|
||||||
|
sudo rm /home/akanealw/debian-configure-sshd.sh > /dev/null 2>&1
|
||||||
|
wget -qO /home/akanealw/debian-configure-sshd.sh http://192.168.1.50/scripts/debian/debian-configure-sshd.sh
|
||||||
|
sudo chown akanealw:akanealw /home/akanealw/debian-configure-sshd.sh
|
||||||
|
sudo chmod +x /home/akanealw/debian-configure-sshd.sh
|
||||||
|
else
|
||||||
|
sudo rm /root/debian-configure-sshd.sh > /dev/null 2>&1
|
||||||
|
wget -qO /root/debian-configure-sshd.sh http://192.168.1.50/scripts/debian/debian-configure-sshd.sh
|
||||||
|
sudo chmod +x /root/debian-configure-sshd.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# lock root
|
# lock root
|
||||||
if [[ -d /home/akanealw ]]
|
if [[ -d /home/akanealw ]]
|
||||||
|
|||||||
7
debian/test-debian-configure-sshd.sh
vendored
7
debian/test-debian-configure-sshd.sh
vendored
@@ -1,8 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "Please run as root"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
rm /root/debian-configure-sshd.sh > /dev/null 2>&1
|
rm /root/debian-configure-sshd.sh > /dev/null 2>&1
|
||||||
rm /home/akanealw/debian-configure-sshd.sh > /dev/null 2>&1
|
rm /home/akanealw/debian-configure-sshd.sh > /dev/null 2>&1
|
||||||
|
|
||||||
wget -qO /root/debian-configure-sshd.sh http://192.168.1.50/scripts/debian/debian-configure-sshd.sh
|
wget -qO /root/debian-configure-sshd.sh http://192.168.1.50/scripts/debian/debian-configure-sshd.sh
|
||||||
chmod +x /root/debian-configure-sshd.sh
|
chmod +x /root/debian-configure-sshd.sh
|
||||||
/root/debian-configure-sshd.sh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user