Commit 96a09728 authored by Paolo Dongilli's avatar Paolo Dongilli
Browse files

modified removal section at the end of clientScript

parent 082b3112
Pipeline #46 passed with stages
in 15 minutes and 35 seconds
...@@ -28,10 +28,11 @@ if [ -e /root/join ]; then ...@@ -28,10 +28,11 @@ if [ -e /root/join ]; then
screen -S XY -X stuff "exec 2>&1 > /dev/tty7\n" screen -S XY -X stuff "exec 2>&1 > /dev/tty7\n"
screen -S XY -X stuff "fuss-client -av $clusterJoin && rm /root/join ; reboot\n" screen -S XY -X stuff "fuss-client -av $clusterJoin && rm /root/join ; reboot\n"
else else
rm -fr /root/.ssh rm /etc/rc.local
rm -f /etc/rc.local rm /root/clientScript
rm -f /root/clientScript rm -fr /root/.ssh/id_rsa*
rm -f /root/cluster rm /root/.ssh/known_hosts
rm -f /root/new_root_pw sed -i '/clonezilla/d' /root/.ssh/authorized_keys
rm /root/cluster
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment