Update 7 files
- /home/.chezmoiscripts/universal/run_onchange_after_14-warp.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_24-vpn-linux.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_27-tor.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_28-privoxy.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.tmpl - /home/dot_config/shell/exports.sh.tmpl
This commit is contained in:
parent
e008d4d81b
commit
8f6dee8687
7 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
### Configure CloudFlare WARP (if not WSL and warp-cli is installed)
|
### Configure CloudFlare WARP (if not WSL and warp-cli is installed)
|
||||||
if [[ ! "$(grep Microsoft /proc/version)" ]] && command -v warp-cli > /dev/null; then
|
if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]] && command -v warp-cli > /dev/null; then
|
||||||
### Register CloudFlare WARP
|
### Register CloudFlare WARP
|
||||||
if warp-cli --accept-tos status | grep 'Registration missing' > /dev/null; then
|
if warp-cli --accept-tos status | grep 'Registration missing' > /dev/null; then
|
||||||
logg info 'Registering CloudFlare WARP'
|
logg info 'Registering CloudFlare WARP'
|
||||||
|
|
|
@ -87,7 +87,7 @@ if command -v nmcli > /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Restart NetworkManager if changes were made and environment is not WSL
|
### Restart NetworkManager if changes were made and environment is not WSL
|
||||||
if [ "$RESTART_NM" == 'true' ] && [[ ! "$(grep Microsoft /proc/version)" ]]; then
|
if [ "$RESTART_NM" == 'true' ] && [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then
|
||||||
logg info 'Restarting NetworkManager since VPN profiles were updated'
|
logg info 'Restarting NetworkManager since VPN profiles were updated'
|
||||||
sudo service NetworkManager restart
|
sudo service NetworkManager restart
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -28,7 +28,7 @@ if command -v toron > /dev/null; then
|
||||||
# macOS
|
# macOS
|
||||||
brew services restart tor
|
brew services restart tor
|
||||||
else
|
else
|
||||||
if [[ ! "$(grep Microsoft /proc/version)" ]]; then
|
if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then
|
||||||
# Linux
|
# Linux
|
||||||
sudo systemctl enable tor
|
sudo systemctl enable tor
|
||||||
sudo systemctl restart tor
|
sudo systemctl restart tor
|
||||||
|
|
|
@ -28,7 +28,7 @@ if command -v privoxy > /dev/null; then
|
||||||
# macOS
|
# macOS
|
||||||
brew services restart privoxy
|
brew services restart privoxy
|
||||||
else
|
else
|
||||||
if [[ ! "$(grep Microsoft /proc/version)" ]]; then
|
if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then
|
||||||
# Linux
|
# Linux
|
||||||
sudo systemctl enable privoxy
|
sudo systemctl enable privoxy
|
||||||
sudo systemctl restart privoxy
|
sudo systemctl restart privoxy
|
||||||
|
|
|
@ -56,7 +56,7 @@ if command -v vmware > /dev/null; then
|
||||||
logg info '/usr/lib/vmware/isoimages/darwin.iso is already present on the system so VMware macOS unlocking will not be performed'
|
logg info '/usr/lib/vmware/isoimages/darwin.iso is already present on the system so VMware macOS unlocking will not be performed'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! "$(grep Microsoft /proc/version)" ]]; then
|
if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then
|
||||||
### Start / enable VMWare service
|
### Start / enable VMWare service
|
||||||
logg info 'Ensuring `vmware.service` is enabled and running'
|
logg info 'Ensuring `vmware.service` is enabled and running'
|
||||||
sudo systemctl enable vmware.service
|
sudo systemctl enable vmware.service
|
||||||
|
|
|
@ -177,7 +177,7 @@ if [ ! -d /Applications ] || [ ! -d /System ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart / enable Docker
|
# Restart / enable Docker
|
||||||
if [[ ! "$(grep Microsoft /proc/version)" ]] && command -v systemctl > /dev/null; then
|
if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]] && command -v systemctl > /dev/null; then
|
||||||
logg info 'Restarting Docker service'
|
logg info 'Restarting Docker service'
|
||||||
sudo systemctl restart docker.service
|
sudo systemctl restart docker.service
|
||||||
sudo systemctl restart containerd.service
|
sudo systemctl restart containerd.service
|
||||||
|
|
|
@ -358,7 +358,7 @@ fi
|
||||||
export BROWSER=brave
|
export BROWSER=brave
|
||||||
|
|
||||||
### WSL
|
### WSL
|
||||||
if [[ "$(grep Microsoft /proc/version)" ]]; then
|
if [ -d /proc ] && [[ "$(grep Microsoft /proc/version > /dev/null)" ]]; then
|
||||||
# Source: https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2
|
# Source: https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2
|
||||||
export LIBGL_ALWAYS_INDIRECT="1"
|
export LIBGL_ALWAYS_INDIRECT="1"
|
||||||
export DISPLAY=$(ip route list default | awk '{print $3}'):0
|
export DISPLAY=$(ip route list default | awk '{print $3}'):0
|
||||||
|
|
Loading…
Reference in a new issue