mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
minor: replace Wget with cURL
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ function install_gitea
|
|||||||
read -r -p "$APP_NAME admin user: " ADMIN_USER
|
read -r -p "$APP_NAME admin user: " ADMIN_USER
|
||||||
ask_for_password
|
ask_for_password
|
||||||
echo "Installing $APP_NAME $INSTALL_VERSION"
|
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
|
verify_file
|
||||||
mkdir --parents ~/gitea/custom/conf/
|
mkdir --parents ~/gitea/custom/conf/
|
||||||
mv --verbose "$TMP_LOCATION"/gitea "$GITEA_BINARY"
|
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
|
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
|
verify_file
|
||||||
$GITEA_BINARY manager flush-queues
|
$GITEA_BINARY manager flush-queues
|
||||||
supervisorctl stop gitea
|
supervisorctl stop gitea
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ GITHUB_API_URL=https://api.github.com/repos/$ORG/$REPO/releases/latest
|
|||||||
|
|
||||||
function do_update_procedure
|
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
|
verify_file
|
||||||
$GITEA_BINARY manager flush-queues
|
$GITEA_BINARY manager flush-queues
|
||||||
supervisorctl stop gitea
|
supervisorctl stop gitea
|
||||||
|
|||||||
Reference in new issue
Block a user