mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
Add firefox.sh (see: tuna/issues#2016)
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
642ef8b681
commit
6c89639872
21
firefox.sh
Executable file
21
firefox.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
_here=`dirname $(realpath $0)`
|
||||||
|
apt_sync="${_here}/apt-sync.py"
|
||||||
|
yum_sync="${_here}/yum-sync.py"
|
||||||
|
|
||||||
|
BASE_PATH="${TUNASYNC_WORKING_DIR}"
|
||||||
|
BASE_URL="${TUNASYNC_UPSTREAM_URL:-"https://packages.mozilla.org/"}"
|
||||||
|
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM
|
||||||
|
|
||||||
|
YUM_PATH="${BASE_PATH}/yum"
|
||||||
|
APT_PATH="${BASE_PATH}/apt"
|
||||||
|
|
||||||
|
# =================== APT repos ===============================
|
||||||
|
# see: https://packages.mozilla.org/apt/dists/mozilla/InRelease
|
||||||
|
"$apt_sync" --delete "${BASE_URL/}/apt" mozilla main amd64,i386,arm64 "${APT_PATH}"
|
||||||
|
echo "APT finished"
|
||||||
|
|
||||||
|
"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE --rm
|
Loading…
x
Reference in New Issue
Block a user