Upgrade to Gradle 7.2 and WPILib 2022 (#316)

This commit is contained in:
Tyler Veness
2021-11-21 17:22:56 -08:00
committed by GitHub
parent ffe34f00fe
commit 5ca39e7f84
316 changed files with 671 additions and 1019 deletions

View File

@@ -19,16 +19,16 @@ echo "JDK installation complete."
echo "Downloading latest stable release of PhotonVision..."
mkdir -p /opt/photonvision
cd /opt/photonvision
curl -sk https://api.github.com/repos/photonvision/photonvision/releases/latest |
grep "browser_download_url.*jar" |
cut -d : -f 2,3 |
tr -d '"' |
curl -sk https://api.github.com/repos/photonvision/photonvision/releases/latest |
grep "browser_download_url.*jar" |
cut -d : -f 2,3 |
tr -d '"' |
wget -qi - -O photonvision.jar
echo "Downloaded latest stable release of PhotonVision."
echo "Creating the PhotonVision systemd service..."
if service --status-all | grep -Fq 'photonvision'; then
if service --status-all | grep -Fq 'photonvision'; then
systemctl stop photonvision
systemctl disable photonvision
rm /lib/systemd/system/photonvision.service
@@ -50,7 +50,7 @@ ExecStop=/bin/systemctl kill photonvision
Type=simple
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target" >> photonvision.service
cp photonvision.service /etc/systemd/system/photonvision.service

View File

@@ -11,5 +11,5 @@ systemctl stop photonvision
systemctl disable photonvision
rm /lib/systemd/system/photonvision.service
rm /etc/systemd/system/photonvision.service
systemctl dameon-relaod
systemctl dameon-relaod
systemctl reset-failed