dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 91b504bfedbf52dc3d08e045b84b4842d65abf2e
parent 0c1369323f60708d86b677c51f7199c08c7d964a
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 12 Sep 2017 02:16:40 +0000

.bin: Remove certbot-ws.

Diffstat:
.bin/certbot-ws | 48------------------------------------------------
1 file changed, 0 insertions(+), 48 deletions(-)

diff --git a/.bin/certbot-ws b/.bin/certbot-ws @@ -1,48 +0,0 @@ -#!/bin/sh -# -# Copyright © 2017 rsiddharth <s@ricketyspace.net> -# License: GNU General Public License version 3 or higher. -# -# systemd-nspawn container for messing with certbot. -# - -CONTAINER_DIR=$HOME'/.containers' -CONTAINER_NAME='certbot-ws' -CONTAINER=$CONTAINER_DIR'/'$CONTAINER_NAME -SCRIPT=`which "$0"` - -CERTBOT_DIR=$HOME'/v/git/others/certbot' - -TERMINFO_SRC='/usr/share/terminfo/r/rxvt-256color:' -TERMINFO_BIND=$TERMINFO_SRC'/root/.terminfo/r/rxvt-256color' - -if [ "$1" = "bootstrap" ]; then - echo 'debootstraping' - mkdir -p $CONTAINER_DIR - [ ! -d $CONTAINER ] && - sudo debootstrap --arch=amd64 testing $CONTAINER - echo 'starting container' - sudo systemd-nspawn -D $CONTAINER \ - --bind-ro=$SCRIPT:/root/$SCRIPT \ - /root/$SCRIPT install -elif [ "$1" = "install" ]; then - echo 'installing paraphernalia in container' - F='/etc/apt/sources.list' && \ - [ `grep deb-src $F | wc -l` = '0' ] && \ - echo 'deb-src http://deb.debian.org/debian testing main' >> $F - apt-get update -y - apt-get install -y build-essential python-dev curl screen git - apt-get upgrade -y -elif [ "$1" = "start-container" ]; then - echo 'starting container' - sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ - -D $CONTAINER \ - --bind-ro=$TERMINFO_BIND \ - --bind-ro=$SCRIPT:/root/$SCRIPT \ - --bind=$CERTBOT_DIR:/root/certbot \ - --bind=/tmp:/tmp -else - echo 'Dunno what to do' - exit 1 -fi -