Unverified Commit b886b567 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Enable support for changing stable / nightly



armbian-config main=System selection=Nightly
Signed-off-by: default avatarIgor Pecovnik <igor.pecovnik@gmail.com>
parent cab1a8ee
......@@ -1409,11 +1409,12 @@ unset selection
"Nightly" )
if ! is_package_manager_running; then
[[ -z $scripted ]] &&
dialog --colors --title " \Z1Warning\Z0 " --backtitle "$BACKTITLE" --yes-label "Yes" \
--no-label "No" --yesno \
"\nYou are switching to an untested auto-build repository which might break your system.\n\nContinue?" 10 48
if [[ $? = 0 ]]; then
if [[ $? = 0 || -n $scripted ]]; then
sed -i 's/^deb http:\/\/[^ ]*/deb http:\/\/beta.armbian.com/' /etc/apt/sources.list.d/armbian.list
reload_bsp
fi
......@@ -1426,11 +1427,12 @@ unset selection
"Stable" )
if ! is_package_manager_running; then
[[ -z $scripted ]] &&
dialog --colors --title " \Z1Warning\Z0 " --backtitle "$BACKTITLE" --yes-label "Yes" \
--no-label "No" --yesno \
"\nYou are switching to a stable repository where you will receive future updates.\n\nContinue?" 9 44
if [[ $? = 0 ]]; then
if [[ $? = 0 || -n $scripted ]]; then
sed -i 's/^deb http:\/\/beta/deb http:\/\/apt/' /etc/apt/sources.list.d/armbian.list
reload_bsp
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment