github -> gitea

This commit is contained in:
Harri Lahtinen 2023-11-25 16:44:13 +02:00
parent cf6aabfb95
commit 95fb4d6584
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ set -eu
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
GITHUB_USER="picodotdev"
GITEA_USER="hartzan"
BRANCH="master"
HASH=""
ARTIFACT="alis-${BRANCH}"
@ -34,11 +34,11 @@ done
set -o xtrace
if [ -n "$HASH" ]; then
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/${HASH}.zip"
curl -sL -o "${ARTIFACT}.zip" "https://gitea.hartzan.com/${GITEA_USER}/alis/archive/${HASH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
else
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/refs/heads/${BRANCH}.zip"
curl -sL -o "${ARTIFACT}.zip" "https://gitea.hartzan.com/${GITEA_USER}/alis/archive/refs/heads/${BRANCH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
fi