[bugfix] docker-compose installation was slow AF

This commit is contained in:
Klesh Wong 2021-01-15 15:54:40 +08:00
parent 7c2833dfbe
commit e3f03e5d76
2 changed files with 4 additions and 5 deletions

View File

@ -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
View File

@ -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() {