[bugfix] docker-compose installation was slow AF
This commit is contained in:
parent
7c2833dfbe
commit
e3f03e5d76
|
@ -9,10 +9,9 @@ case "$PM" in
|
|||
apt)
|
||||
# snap docker will intefere native docker.io, must be dealt with
|
||||
sudo snap remove --purge docker
|
||||
pm_update
|
||||
sudo apt install -y docker.io
|
||||
if ! has_cmd python; then
|
||||
"$PDIR/python/install.sh"
|
||||
fi
|
||||
"$PDIR/devel/python.sh"
|
||||
sudo pip3 install docker-compose
|
||||
;;
|
||||
pacman)
|
||||
|
|
4
env.sh
4
env.sh
|
@ -10,8 +10,8 @@ PDIR=$(dirname "${DIR-$0}")
|
|||
GITHUB_PROXY=${GITHUB_PROXY-$HTTPS_PROXY}
|
||||
|
||||
in_china() {
|
||||
! [ -f /tmp/myip ] && curl -s myip.ipip.net > /tmp/myip
|
||||
grep -qF '中国' /tmp/myip
|
||||
! [ -f /tmp/myip_full ] && curl -s myip.ipip.net > /tmp/myip_full
|
||||
grep -qF '中国' /tmp/myip_full
|
||||
}
|
||||
|
||||
lnsf() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user