mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-26 22:00:29 +00:00
Fix new shutdown script not working
This commit is contained in:
parent
e84dbe7534
commit
fd6bc3536f
@ -5,7 +5,7 @@ PID=`pgrep launchd`
|
||||
while [[ ! -z $PID ]]
|
||||
do
|
||||
THISPID=$(echo $PID | head -n1)
|
||||
RUNNING_USER=$(ps -o uname= -p $THISPID)
|
||||
RUNNING_USER=$(ps -o uname= -p $THISPID | head -n1)
|
||||
echo "Darling currently running for $RUNNING_USER, shutting it down..."
|
||||
sudo -u $RUNNING_USER darling shutdown
|
||||
sleep 2
|
||||
|
Loading…
Reference in New Issue
Block a user