nodemecu/desinstalar

20 lines
327 B
Text
Raw Normal View History

2022-02-23 14:42:32 +00:00
#!/bin/bash
2022-03-05 18:13:50 +00:00
if [ $UID -ne 0 ]; then
echo "Ejecute 'sudo $0'"
exit
fi
source /etc/nodemecu.conf
rm /etc/nodemecu.conf
rm /usr/bin/nodemecu
crontab -u root -r
rm -rf $directorio_instalacion
systemctl stop nodemecu.service
systemctl disable nodemecu.service
rm /lib/systemd/system/nodemecu.service
systemctl daemon-reload
2022-02-23 14:42:32 +00:00