Update stirlingpdf.sh

tweak
This commit is contained in:
tteckster 2024-01-08 06:42:12 -05:00 committed by GitHub
parent b80c0e422a
commit e1247b6d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ cp -r scripts /opt/Stirling-PDF/
cd ~
rm -rf Stirling-PDF
latest_version=$(ls -1 /opt/Stirling-PDF/Stirling-PDF-*.jar | sort -V | tail -n 1)
ln -s "$latest_version" /opt/Stirling-PDF/Stirling-PDF.jar
ln -sf "$latest_version" /opt/Stirling-PDF/Stirling-PDF.jar
new_version=$(echo "$latest_version" | grep -oP '(?<=Stirling-PDF-)\d+(\.\d+)+(?=\.jar)')
systemctl start stirlingpdf
msg_ok "Updated ${APP} to v$new_version"