mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-04 21:17:47 +03:00
chore(scripts): run apt update on apt based distro
Running apt update to avoid "package not found" error on some pre-installed Ubuntu / Debian. I have tested that other supported Linux distributions do not need this. dnf/yum/zypper: update metadata regularly by default, and checked when installing any package pacman: run with -Sy so metadata is always updated cherry-picked from: apernet/tcp-brutal@efcc08b936
This commit is contained in:
parent
0f388396a4
commit
3de65357d4
1 changed files with 1 additions and 0 deletions
|
@ -236,6 +236,7 @@ detect_package_manager() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if has_command apt; then
|
if has_command apt; then
|
||||||
|
apt update
|
||||||
PACKAGE_MANAGEMENT_INSTALL='apt -y --no-install-recommends install'
|
PACKAGE_MANAGEMENT_INSTALL='apt -y --no-install-recommends install'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue