Configurar gems.sutty.nl

Esto nos permite instalar Jekyll y otras cositas ya que sino
fallan por no tener las herramientas para compilar sus dependencias

Squashed commit of the following:

commit d04793238ecbc52ccb83a2d582cb00ad71c536a0
Author: Nulo <nulo@sutty.nl>
Date:   Thu Aug 26 15:48:05 2021 -0300

    Generar /home/suttier antes de aplicar parche

commit 812ea43a7eb9c34311618af069b21adafccbe79c
Author: f <f@sutty.nl>
Date:   Thu Aug 26 09:03:09 2021 -0300

    Configurar rubygems
This commit is contained in:
Cat /dev/Nulo 2021-08-26 15:50:24 -03:00
parent 32442afdf7
commit 1cb3e9153d
2 changed files with 11 additions and 4 deletions

2
.gemrc Normal file
View File

@ -0,0 +1,2 @@
:sources:
- https://gems.sutty.nl

View File

@ -40,10 +40,6 @@ ENTORNO=${ENTORNO:-${ROOT}/hain}
correr() {
echo "> $1"
mkdir -p "$ENTORNO/home"
# migrar de versiones anteriores de hainish
test -d "$ENTORNO$HOME" && mv "$ENTORNO$HOME" "$ENTORNO/home/suttier"
env -i \
TERM="$TERM" \
USER="$USER" \
@ -167,6 +163,15 @@ crear_entorno() {
# Instalar la configuración
install -m 640 "$DIR/nginx.conf" "$ENTORNO/etc/nginx/http.d/default.conf"
mkdir -p "$ENTORNO/home"
# migrar de versiones anteriores de hainish
test -d "$ENTORNO$HOME" && test ! -d "$ENTORNO/home/suttier" \
&& mv "$ENTORNO$HOME" "$ENTORNO/home/suttier"
mkdir -p "$ENTORNO/home/suttier"
# Configurar rubygems para que descargue las gemas desde Sutty
install -m 640 "$DIR/.gemrc" "$ENTORNO/home/suttier/.gemrc"
# Resaltado de sintaxis en nano
grep -q "^include " "$ENTORNO/etc/nanorc" || echo "include \"/usr/share/nano/*.nanorc\"" >> "$ENTORNO/etc/nanorc"