repo: Don't include online repositories if a variable ROOTFS_MAIN is set

This commit is contained in:
Anton Midyukov 2020-11-12 23:35:11 +07:00
parent 5848ae70df
commit c4989f8577

View File

@ -3,6 +3,8 @@
repo_source='/etc/apt/sources.list.d/yandex.list' repo_source='/etc/apt/sources.list.d/yandex.list'
[ -z "$GLOBAL_ROOTFS_MAIN" ] || exit 0
[ -s "$repo_source" ] || exit 0 [ -s "$repo_source" ] || exit 0
# regexps from alterator-pkg (via installer-feature-online-repo) # regexps from alterator-pkg (via installer-feature-online-repo)