minor: replace Wget with cURL

This commit is contained in:
EV21 committed 2023-04-28 09:05:27 +02:00
1 parent 64ca8f3485
commit 3d7be4de12
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ function install_gitea
read -r -p "$APP_NAME admin user: " ADMIN_USER
ask_for_password
echo "Installing $APP_NAME $INSTALL_VERSION"
wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
verify_file
mkdir --parents ~/gitea/custom/conf/
mv --verbose "$TMP_LOCATION"/gitea "$GITEA_BINARY"
@@ -281,7 +281,7 @@ GITHUB_API_URL=https://api.github.com/repos/$ORG/$REPO/releases/latest
function do_update_procedure
{
wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
verify_file
$GITEA_BINARY manager flush-queues
supervisorctl stop gitea
+1 -1
View File
@@ -11,7 +11,7 @@ GITHUB_API_URL=https://api.github.com/repos/$ORG/$REPO/releases/latest
function do_update_procedure
{
wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
verify_file
$GITEA_BINARY manager flush-queues
supervisorctl stop gitea