From b34f7b688cce6da62585bdef9f45423174502de7 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Tue, 28 Nov 2023 02:48:27 +0000 Subject: [PATCH] Latest --- .../universal/run_onchange_after_30-sshd.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl index d7a656a7..e5834468 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_30-sshd.sh.tmpl @@ -38,10 +38,10 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then ### Restart SSH server if [ -d /Applications ] && [ -d /System ]; then # macOS + logg info 'Running sudo systemsetup -setremotelogin on' && sudo systemsetup -setremotelogin on 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' + logg info 'Running sudo launchctl start com.openssh.sshd' && sudo launchctl start com.openssh.sshd && logg success 'Successfully ran launchctl start com.openssh.sshd' else # Linux logg info 'Enabling the sshd service'