mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-01 12:52:14 +00:00
Add root check
This commit is contained in:
parent
b3ce2e8880
commit
94d7b957a8
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@
|
|||
# curl -sS "https://m2.nz/setup.sh" | bash
|
||||
# rm -fr ~/.ssh/authorized_keys
|
||||
|
||||
# Root check
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Clean up if needed
|
||||
if [[ "$1" == "uninstall" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue