Added missing sudo
This commit is contained in:
parent
253a8980d8
commit
de3d745f8e
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then
|
|||
### Restart SSH server
|
||||
if [ -d /Applications ] && [ -d /System ]; then
|
||||
# macOS
|
||||
logg info 'Running launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
||||
logg info 'Running sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
||||
logg info 'Running sudo launchctl stop com.openssh.sshd' && sudo launchctl stop com.openssh.sshd
|
||||
logg info 'Running sudo launchctl start com.openssh.sshd'
|
||||
sudo launchctl start com.openssh.sshd && logg success 'Successfully ran launchctl start com.openssh.sshd'
|
||||
|
|
Loading…
Reference in a new issue