chewbranca.com

Check-in [9da855f5d2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Ensure apt update after adding openresty repo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9da855f5d29626d5b79cf43c9f9a318f2c9a0f7bf86c274651cfdddbba56a391
User & Date: chewbranca 2020-04-08 02:54:12
Context
2020-04-08
04:46
Provide base fossil repo as cli arg check-in: 4535aac932 user: chewbranca tags: trunk
02:54
Ensure apt update after adding openresty repo check-in: 9da855f5d2 user: chewbranca tags: trunk
2020-04-06
18:24
Rework chewbranca user creation check-in: 58019540d0 user: chewbranca tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to bootstrap/chewbranca_com.sh.

68
69
70
71
72
73
74


75

76
77
78
79
80
81
82
REPO='http://openresty.org/package/debian'
if ! bb-apt-repo? $REPO
then
    wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -
    cp /etc/apt/sources.list /etc/apt/sources.list.backup
    echo "deb $REPO $(lsb_release -sc) openresty" >> /etc/apt/sources.list
    echo "deb-src $REPO $(lsb_release -sc) openresty" >> /etc/apt/sources.list


    bb-apt-update


    mkdir -p /opt/log/nginx
    touch /opt/log/nginx/chewbranca.com-http-access.log
    touch /opt/log/nginx/chewbranca.com-http-error.log
fi

bb-apt-install openresty







>
>
|
>







68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
REPO='http://openresty.org/package/debian'
if ! bb-apt-repo? $REPO
then
    wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -
    cp /etc/apt/sources.list /etc/apt/sources.list.backup
    echo "deb $REPO $(lsb_release -sc) openresty" >> /etc/apt/sources.list
    echo "deb-src $REPO $(lsb_release -sc) openresty" >> /etc/apt/sources.list
    # TODO: this should work; probably need a new function "bb-apt-repo-add"
    #       that clears $BB_APT_UPDATED; same for "bb-apt-repo-key*"
    #bb-apt-update
    apt-get update

    mkdir -p /opt/log/nginx
    touch /opt/log/nginx/chewbranca.com-http-access.log
    touch /opt/log/nginx/chewbranca.com-http-error.log
fi

bb-apt-install openresty