mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Update
This commit is contained in:
+21
-19
@@ -157,25 +157,27 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
case "$DEBI_PRESET" in
|
if [ -n "$DEBI_PRESET" ]; then
|
||||||
china)
|
case "$DEBI_PRESET" in
|
||||||
DEBI_NS=${DEBI_NS:-156.154.70.5 156.154.71.5}
|
china)
|
||||||
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
|
DEBI_NS=${DEBI_NS:-156.154.70.5 156.154.71.5}
|
||||||
DEBI_MIRROR=${DEBI_MIRROR:-chinanet.mirrors.ustc.edu.cn}
|
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
|
||||||
DEBI_TIMEZONE=${DEBI_TIMEZONE:-Asia/Shanghai}
|
DEBI_MIRROR=${DEBI_MIRROR:-chinanet.mirrors.ustc.edu.cn}
|
||||||
DEBI_NTP=${DEBI_NTP:-cn.ntp.org.cn}
|
DEBI_TIMEZONE=${DEBI_TIMEZONE:-Asia/Shanghai}
|
||||||
DEBI_SECURITY=${DEBI_SECURITY:-true}
|
DEBI_NTP=${DEBI_NTP:-cn.ntp.org.cn}
|
||||||
;;
|
DEBI_SECURITY=${DEBI_SECURITY:-true}
|
||||||
cloud)
|
;;
|
||||||
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
|
cloud)
|
||||||
DEBI_MIRROR=${DEBI_MIRROR:-cdn-aws.deb.debian.org}
|
DEBI_PROTOCOL=${DEBI_PROTOCOL:-https}
|
||||||
DEBI_NTP=${DEBI_NTP:-time.google.com}
|
DEBI_MIRROR=${DEBI_MIRROR:-cdn-aws.deb.debian.org}
|
||||||
DEBI_SECURITY=${DEBI_SECURITY:-true}
|
DEBI_NTP=${DEBI_NTP:-time.google.com}
|
||||||
;;
|
DEBI_SECURITY=${DEBI_SECURITY:-true}
|
||||||
*)
|
;;
|
||||||
echo_stderr "Error: No such preset $DEBI_PRESET"
|
*)
|
||||||
exit 1
|
echo_stderr "Error: No such preset $DEBI_PRESET"
|
||||||
esac
|
exit 1
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
DEBI_SUITE=${DEBI_SUITE:-stretch}
|
DEBI_SUITE=${DEBI_SUITE:-stretch}
|
||||||
DEBI_NEW="debian-$DEBI_SUITE"
|
DEBI_NEW="debian-$DEBI_SUITE"
|
||||||
|
|||||||
Reference in New Issue
Block a user