create-command-on-linux/update_and_notification_com...

10 lines
422 B
Plaintext

nano /usr/local/bin/ferox
========
#!/bin/bash
sudo /usr/bin/apt update && sudo /usr/bin/apt upgrade -y && \
curl -d "Your System Has Been Updated and Upgraded Successfully" https://ntfy.sahab.eu.org/ferox && \
curl "http://192.168.0.109:86/message?token=AtypyhKyIT1Gkqp" -F "title=FEROX" -F "message=Your System Has Been Updated and Upgraded Successfully" -F "priority=1"
========
chmod +x /usr/local/bin/ferox