mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-03 07:50:28 +08:00
优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-07-18
|
## Modified: 2025-07-24
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -1945,22 +1945,24 @@ function change_mirrors_Debian() {
|
|||||||
echo "deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}"
|
echo "deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}"
|
||||||
}
|
}
|
||||||
function gen_deb_disabled_source() {
|
function gen_deb_disabled_source() {
|
||||||
echo "# deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}
|
echo "$(gen_deb_source "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||||
# # deb-src ${WEB_PROTOCOL}://${1}/ ${2} ${3}"
|
|
||||||
}
|
}
|
||||||
function gen_deb822_source() {
|
function gen_deb822_source_template() {
|
||||||
echo "Types: deb
|
echo "Types: ${1}
|
||||||
URIs: ${WEB_PROTOCOL}://${1}/
|
URIs: ${WEB_PROTOCOL}://${2}/
|
||||||
Suites: ${2}
|
Suites: ${3}
|
||||||
Components: ${3}
|
Components: ${4}
|
||||||
Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
|
Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
|
||||||
|
}
|
||||||
|
function gen_deb822_source() {
|
||||||
|
echo "$(gen_deb822_source_template "deb" "${1}" "${2}" "${3}")
|
||||||
|
|
||||||
|
$(gen_deb822_source_template "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
|
||||||
}
|
}
|
||||||
function gen_deb822_disabled_source() {
|
function gen_deb822_disabled_source() {
|
||||||
echo "# Types: deb
|
echo "$(gen_deb822_source_template "deb" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")
|
||||||
# URIs: ${WEB_PROTOCOL}://${1}/
|
|
||||||
# Suites: ${2}
|
$(gen_deb822_source_template "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g; s|^|# |g")"
|
||||||
# Components: ${3}
|
|
||||||
# Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
|
|
||||||
}
|
}
|
||||||
function gen_deb_source_security() {
|
function gen_deb_source_security() {
|
||||||
echo "## 安全更新软件源
|
echo "## 安全更新软件源
|
||||||
|
|||||||
Reference in New Issue
Block a user