Last active
August 31, 2022 08:25
-
-
Save Columbo818/3726d640998374f3fa14b4ee800fa749 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# VPN fixes | |
sudo mv /etc/openvpn/bapt-greyparrot.conf /etc/openvpn/greyparrot.conf >> /mnt/capture/log/baptism.log | |
sudo systemctl stop openvpn@bapt-greyparrot >> /mnt/capture/log/baptism.log | |
sudo systemctl enable openvpn@greyparrot >> /mnt/capture/log/baptism.log | |
sudo systemctl start openvpn@greyparrot >> /mnt/capture/log/baptism.log | |
fixed=$(cat ~/.config/autostart/baptiseMe.sh | grep -c "PROD > /dev/null") | |
if [[ $fixed -ne 0 ]]; then | |
sudo sed -i 's\PROD > /dev/null\PROD > /mnt/capture/log/baptism.log\g' ~/.config/autostart/baptiseMe.sh | |
exec ~/.config/autostart/baptiseMe.sh | |
fi | |
sudo chown elroy:elroy /mnt/capture | |
yes "yes" | sudo sensors-detect | |
sudo sed -i 's/Unattended-Upgrade "1"/Unattended-Upgrade "0"/g' /etc/apt/apt.conf.d/20auto-upgrades | |
sudo sed -i 's,169.254.0.1/24,169.254.0.1/16,g' /etc/netplan/01-network-manager-all.yaml | |
sudo netplan apply | |
echo "No additional commands to run" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment