Latest
This commit is contained in:
parent
a1fce5a805
commit
ca1efa1a63
5 changed files with 7 additions and 7 deletions
|
@ -28,11 +28,11 @@
|
|||
# along with the secrets for the protonVPN OpenVPN (check vpn-linux.tmpl)
|
||||
|
||||
# @description Backs up previous network settings to `/Library/Preferences/com.apple.networkextension.plist.old` before applying new VPN profiles
|
||||
if [ -f /Library/Preferences/com.apple.networkextension.plist ]; then
|
||||
if [ -f /Library/Preferences/com.apple.networkextension.plist ] && [ ! -f "/Library/Preferences/com.apple.networkextension.plist.old" ]; then
|
||||
logg info 'Backing up /Library/Preferences/com.apple.networkextension.plist to /Library/Preferences/com.apple.networkextension.plist.old'
|
||||
sudo cp -f /Library/Preferences/com.apple.networkextension.plist /Library/Preferences/com.apple.networkextension.plist.old
|
||||
else
|
||||
logg info 'The /Library/Preferences/com.apple.networkextension.plist file does not exist yet'
|
||||
logg info 'The /Library/Preferences/com.apple.networkextension.plist does not exist or is already backed up to com.apple.networkextension.plist.old'
|
||||
fi
|
||||
|
||||
# @description Ensures the `/etc/wireguard` directory exists and has the lowest possible permission-level
|
||||
|
|
|
@ -70,7 +70,7 @@ if command -v code > /dev/null && command -v npm > /dev/null && [ -f "${XDG_DATA
|
|||
logg warn 'Possible error(s) were detected while installing linter fallback configurations to the home directory.'
|
||||
logg info "Exit code: $EXIT_CODE"
|
||||
else
|
||||
logg success 'Installed linter fallback configuration node_modules'
|
||||
logg info 'Installed linter fallback configuration node_modules'
|
||||
fi
|
||||
else
|
||||
logg info 'Skipping installation of fallback linter configurations because one or more of the dependencies is missing.'
|
||||
|
|
|
@ -41,13 +41,13 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then
|
|||
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 2> /dev/null
|
||||
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 info 'Successfully ran launchctl start com.openssh.sshd'
|
||||
else
|
||||
# Linux
|
||||
logg info 'Enabling the sshd service'
|
||||
sudo systemctl enable sshd
|
||||
logg info 'Restarting the sshd service'
|
||||
sudo systemctl restart sshd && logg success 'Successfully ran sudo systemctl restart sshd'
|
||||
sudo systemctl restart sshd && logg info 'Successfully ran sudo systemctl restart sshd'
|
||||
fi
|
||||
else
|
||||
logg warn 'The /etc/ssh folder does not exist'
|
||||
|
|
|
@ -212,7 +212,7 @@ if [ ! -d /Applications ] || [ ! -d /System ]; then
|
|||
if [ -n "$RUNSC_EXIT_CODE" ]; then
|
||||
logg error 'Failed to run the Docker hello-world container with runsc' && exit 5
|
||||
else
|
||||
logg success 'Docker successfully ran the hello-world container with runsc'
|
||||
logg info 'Docker successfully ran the hello-world container with runsc'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -432,7 +432,7 @@ endif
|
|||
|
||||
silent! call plug#begin('~/.local/share/vim/plugged')
|
||||
Plug '~/.local/share/vim/plugged/ale'
|
||||
Plug '~/.local/share/vim/plugged/coc.nvim'
|
||||
Plug '~/.local/share/vim/plugged/coc.nvim', {'do': 'npm ci'}
|
||||
Plug '~/.local/share/vim/plugged/copilot.vim'
|
||||
Plug '~/.local/share/vim/plugged/dockerfile.vim'
|
||||
Plug '~/.local/share/vim/plugged/editorconfig-vim'
|
||||
|
|
Loading…
Reference in a new issue