Compare commits
31 commits
container-
...
antifascis
Author | SHA1 | Date | |
---|---|---|---|
fauno | 7fe80d7fb4 | ||
02efc493aa | |||
c23ce4b2cc | |||
01a1eca869 | |||
4149df450a | |||
fauno | ac4bd0a57a | ||
fauno | 1127d5ab61 | ||
def36cf183 | |||
79f72a80f0 | |||
5729880a37 | |||
306ec0efc0 | |||
834d485b18 | |||
8698a22f0a | |||
9bd12bc8fd | |||
6de964e649 | |||
6a465a1fa4 | |||
fauno | ba1a7c75fe | ||
fauno | 77e8f140f3 | ||
Cat /dev/Nulo | 09e732bdc4 | ||
6010347b8c | |||
9095a54a97 | |||
fauno | 0229fa5fbc | ||
6b00075d63 | |||
2f7d16626b | |||
fauno | 69e0d7f9c4 | ||
fauno | 034924f69e | ||
Cat /dev/Nulo | c6287ab8ff | ||
fauno | c4efdd0334 | ||
Cat /dev/Nulo | ec471e1d4e | ||
Cat /dev/Nulo | 8e1a834e47 | ||
Cat /dev/Nulo | b3c9e18fac |
|
@ -5,3 +5,4 @@ subjectAltName = @alt_names
|
|||
[alt_names]
|
||||
DNS.1 = sutty.local
|
||||
DNS.2 = *.sutty.local
|
||||
DNS.3 = *.tienda.sutty.local
|
||||
|
|
31
haini.sh
31
haini.sh
|
@ -21,7 +21,7 @@ if ! test "$HAIN_ENV" && ! type bwrap >/dev/null 2>&1 ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if test "$(sysctl -n kernel.unprivileged_userns_clone)" -ne 1 ; then
|
||||
if test -f /proc/sys/kernel/unprivileged_userns_clone && test "$(cat /proc/sys/kernel/unprivileged_userns_clone)" -ne 1 ; then
|
||||
echo "Necesitamos configurar tu sistema, ingresa tu contraseña para correr el comando" >&2
|
||||
echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2
|
||||
sudo sysctl -a kernel.unprivileged_userns_clone=1
|
||||
|
@ -50,12 +50,14 @@ correr() {
|
|||
fi
|
||||
|
||||
env -i \
|
||||
DISPLAY="$DISPLAY" \
|
||||
TERM="$TERM" \
|
||||
USER="suttier" \
|
||||
HOME="/home/suttier" \
|
||||
HAIN_ENV=true \
|
||||
RAILS_ENV="${RAILS_ENV:-development}" \
|
||||
JEKYLL_ENV="${JEKYLL_ENV:-development}" \
|
||||
$(test -f "$ENV_FILE" && (grep -v '^#' "$ENV_FILE" | xargs -0) || true) \
|
||||
EDITOR="nano" \
|
||||
PAGER="less -niSFX" \
|
||||
SSH_AUTH_SOCK="${SSH_AUTH_SOCK}" \
|
||||
|
@ -69,6 +71,7 @@ correr() {
|
|||
--unshare-cgroup-try \
|
||||
--bind "$ENTORNO" / \
|
||||
--bind "$ROOT" /Sutty \
|
||||
$(test -f ~/.Xauthority && echo "--ro-bind $HOME/.Xauthority /home/suttier/.Xauthority") \
|
||||
--ro-bind /etc/hosts /etc/hosts \
|
||||
--ro-bind /etc/resolv.conf /etc/resolv.conf \
|
||||
--ro-bind /etc/localtime /etc/localtime \
|
||||
|
@ -214,6 +217,29 @@ crear_entorno() {
|
|||
test -f "$ENTORNO/usr/local/share/ca-certificates/ca-sutty.crt" || mv "$ENTORNO/etc/ssl/certs/ca-sutty.crt" "$ENTORNO/usr/local/share/ca-certificates/ca-sutty.crt"
|
||||
}
|
||||
|
||||
# Auto-actualizar una vez por hora
|
||||
actualizar() {
|
||||
test ! "$TERM" = "dumb" || return
|
||||
|
||||
last_update="$(find "$DIR/.git/FETCH_HEAD" -mmin +60 | wc -l)"
|
||||
|
||||
if test ! $last_update -ne 0; then
|
||||
return
|
||||
fi
|
||||
|
||||
echo -n "Actualizando haini.sh... " >&2
|
||||
if ping -q -c 1 0xacab.org >/dev/null 2>&1; then
|
||||
git -C "$DIR" pull --ff-only
|
||||
|
||||
if test "$DIR/.git/FETCH_HEAD" -ot "$DIR/.git/ORIG_HEAD"; then
|
||||
echo "haini.sh se actualizó, por favor volvé a ejecutar el comando" >&2
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo "no se pudo conectar 0xacab.org, intentando la próxima vez." >&2
|
||||
fi
|
||||
}
|
||||
|
||||
DEFAULT="sh"
|
||||
|
||||
case $1 in
|
||||
|
@ -245,8 +271,9 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
actualizar
|
||||
crear_entorno
|
||||
stdin=/dev/stdin correr "${*:-$DEFAULT}" ; salida=$?
|
||||
stdin="$(test "$TERM" = "dumb" || echo "/dev/stdin")" correr "${*:-$DEFAULT}" ; salida=$?
|
||||
|
||||
${SSH_ADHOC} && ssh-agent -k
|
||||
|
||||
|
|
|
@ -9,6 +9,10 @@ server {
|
|||
|
||||
add_header Cache-Control "no-store; max-age=0";
|
||||
|
||||
location ~ /../assets/js/pack.js {
|
||||
rewrite ^ /assets/js/pack.js last;
|
||||
}
|
||||
|
||||
location /assets/js/pack.js {
|
||||
proxy_pass http://127.0.0.1:65001;
|
||||
}
|
||||
|
@ -23,3 +27,5 @@ server {
|
|||
proxy_pass http://127.0.0.1:65001;
|
||||
}
|
||||
}
|
||||
|
||||
include /Sutty/*-jekyll-theme/_nginx.conf;
|
||||
|
|
Loading…
Reference in a new issue