dotfiles

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

commit 387ae56d9273deb57faf1527d320e69ee8f6ca27
parent 777b1585ebbb93dcbeec5edb3a5a2c86e6ff5fab
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 24 Feb 2018 02:24:41 +0000

.bin: Remove php5.

Diffstat:
.bin/php5 | 45---------------------------------------------
1 file changed, 0 insertions(+), 45 deletions(-)

diff --git a/.bin/php5 b/.bin/php5 @@ -1,45 +0,0 @@ -#!/bin/sh -# -# Copyright © 2017 rsiddharth <s@ricketyspace.net> -# License: GNU General Public License version 3 or higher. -# -# systemd-nspawn container for php5 - -CONTAINER_DIR=$HOME'/.containers' -CONTAINER_NAME='php5' -CONTAINER=$CONTAINER_DIR'/'$CONTAINER_NAME -SCRIPT=`which "$0"` - -TERMINFO_SRC='/usr/share/terminfo/r/rxvt-256color:' -TERMINFO_BIND=$TERMINFO_SRC'/root/.terminfo/r/rxvt-256color' - -if [ -n "$2" ]; then - BIND_DIR=$2 -else - BIND_DIR=$HOME -fi - -if [ "$1" = "bootstrap" ]; then - echo 'debootstrap' - [ ! -d $CONTAINER ] && - sudo debootstrap --arch=amd64 testing $CONTAINER - sudo systemd-nspawn -D $CONTAINER \ - --bind-ro=$SCRIPT:/root/$SCRIPT \ - /root/$SCRIPT install -elif [ "$1" = "install" ]; then - # this is run inside the container - apt-get update -y && \ - apt-get install -y php5 ca-certificates curl && - curl -sS https://getcomposer.org/installer | \ - php -- --install-dir=/usr/local/bin --filename=composer -elif [ "$1" = "start" ]; then - # start the container - sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ - --bind=$BIND_DIR:/root/bd \ - -D $CONTAINER \ - --bind-ro=$TERMINFO_BIND -else - echo 'Dunno what to do' - exit 1 -fi -