Replace wget with curl -fsSL, normalize downloads, and prep for IPv6 (#3455)
* Initial Call, Switch from curl -s to curl -fsSL and wget to curl -fssL * more switches * switch vms * more curls * More curls * more * more * more changes * more * prepare ipv6 calls * change frontend to ipv6 * Formatting * Fromatting * Update gomft.sh * Update gomft-install.sh * Update ersatztv.sh * Update build.func --------- Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing PHP8.2"
|
||||
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||
curl -fsSLSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||
echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list
|
||||
$STD apt-get update
|
||||
$STD apt-get install -y php8.2
|
||||
@@ -31,8 +31,8 @@ $STD apt-get install -y php8.2-mbstring
|
||||
msg_ok "Installed PHP8.2"
|
||||
|
||||
msg_info "Installing grocy"
|
||||
latest=$(curl -s https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
wget -q https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip
|
||||
latest=$(curl -fsSL https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
curl -fsSL "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip" -O $(basename "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip")
|
||||
$STD unzip grocy_${latest}.zip -d /var/www/html
|
||||
chown -R www-data:www-data /var/www/html
|
||||
cp /var/www/html/config-dist.php /var/www/html/data/config.php
|
||||
|
||||
Reference in New Issue
Block a user