X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;ds=sidebyside;f=distro-end;h=0c6b463623c5f9a352be268363910b0a73a5d5bd;hb=77917a8fbf2032a8b2634a1b3de0879ec45cf213;hp=1b72e2ea0fc53a8abbccd5f5d1e6b64b2dd288bc;hpb=6061d88c7d5beda3e974943eb8676f7c39d4ae9f;p=distro-setup diff --git a/distro-end b/distro-end index 1b72e2e..0c6b463 100755 --- a/distro-end +++ b/distro-end @@ -1,7 +1,7 @@ #!/bin/bash # Copyright (C) 2019 Ian Kelling # SPDX-License-Identifier: AGPL-3.0-or-later -if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi +export BRC=t; if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi ### setup source /a/bin/errhandle/err @@ -12,15 +12,14 @@ if [[ $EUID == 0 ]]; then exit 1 fi -errcatch-cleanup() { +err-cleanup() { echo 1 >~/.local/distro-end } # shellcheck source=./pkgs source $src/pkgs -exec &> >(sudo tee -a /var/log/distro-end) -echo "$0: $(date): starting now)" +echo "$0: $(date) starting now)" # see example of usage to understand. end_msg() { local y @@ -32,9 +31,11 @@ end() { echo 0 >~/.local/distro-end if $pending_reboot; then echo "$0: pending reboot and then finished. doing it now." + echo "exiting with status 0" sudo reboot now else echo "$0: $(date): ending now)" + echo "exiting with status 0" fi exit 0 } @@ -104,10 +105,10 @@ esac ### begin certbot install ### -if [[ $distro == debian ]]; then +if [[ $distro == debian || $codename_compat == bionic ]]; then # note, need python-certbot-nginx for nginx, but it depends on nginx, # and I'm not installing nginx by default right now. - pi certbot python-certbot-apache + pi certbot python3-certbot-apache elif [[ $codename_compat == xenial ]]; then # not packaged in xenial or flidas pi software-properties-common @@ -180,6 +181,10 @@ Pin-Priority: -100 Package: * Pin: release a=xenial-security Pin-Priority: -100 + +Package: firefox +Pin: release n=xenial +Pin-Priority: 500 EOF sd /etc/apt/sources.list.d/xenial.list 2>/dev/null <