✨ Updated scripts
This commit is contained in:
parent
eef4fdf99c
commit
d0aead5a9c
14 changed files with 386 additions and 99 deletions
|
|
@ -1,8 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$(id -u)" -ne 0 ]]; then
|
||||
myid=$(id -u)
|
||||
echo "your userid is ${myid}"
|
||||
if [[ $myid -ne 0 && $myid -ne 1000 ]]; then
|
||||
echo "[ERROR] You must run this script as root!"
|
||||
exit 0
|
||||
elif [ $myid -eq 1000 ]; then
|
||||
echo "You are ${USER}!"
|
||||
else
|
||||
echo "You are root!"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue