mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-04 18:11:00 +02:00
several scripts: use the release helpers instead of hand-rolled version checks and downloads (#17625)
* Use the release helpers instead of hand-rolled version checks and downloads Legacy /opt/*_version.txt files move to ~/.<app> on the next update. * homeassistant: use get_latest_github_release
This commit is contained in:
committed by
GitHub
parent
94cdc531ca
commit
b4bf7aacf3
@@ -180,7 +180,7 @@ setup_alpine() {
|
||||
sed -i 's|# *include "mod_fastcgi.conf"|include "mod_fastcgi.conf"|' /etc/lighttpd/lighttpd.conf
|
||||
sed -i 's|/usr/bin/php-cgi|/usr/bin/php-cgi83|g' /etc/lighttpd/mod_fastcgi.conf
|
||||
mkdir -p /var/www/localhost/htdocs
|
||||
ADMINER_VERSION=$(curl -fsSL https://api.github.com/repos/vrana/adminer/releases/latest | jq -r '.tag_name' | sed 's/^v//')
|
||||
ADMINER_VERSION=$(get_latest_github_release "vrana/adminer")
|
||||
curl -fsSL "https://github.com/vrana/adminer/releases/download/v${ADMINER_VERSION}/adminer-${ADMINER_VERSION}.php" -o /var/www/localhost/htdocs/adminer.php
|
||||
chown lighttpd:lighttpd /var/www/localhost/htdocs/adminer.php
|
||||
chmod 755 /var/www/localhost/htdocs/adminer.php
|
||||
|
||||
Reference in New Issue
Block a user