Merge branch 'antifascista' into container-ci
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
commit
10dcbf25e5
1 changed files with 3 additions and 3 deletions
6
haini.sh
6
haini.sh
|
@ -20,7 +20,7 @@ if ! test "$HAIN_ENV" && ! type bwrap >/dev/null 2>&1 ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $(sysctl -n kernel.unprivileged_userns_clone) -ne 1 ; then
|
if test "$(sysctl -n kernel.unprivileged_userns_clone)" -ne 1 ; then
|
||||||
echo "Necesitamos configurar tu sistema, ingresa tu contraseña para correr el comando" >&2
|
echo "Necesitamos configurar tu sistema, ingresa tu contraseña para correr el comando" >&2
|
||||||
echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2
|
echo "sudo sysctl -a kernel.unprivileged_userns_clone=1" >&2
|
||||||
sudo sysctl -a kernel.unprivileged_userns_clone=1
|
sudo sysctl -a kernel.unprivileged_userns_clone=1
|
||||||
|
@ -148,7 +148,7 @@ crear_entorno() {
|
||||||
# Instalar las dependencias solo si cambiaron
|
# Instalar las dependencias solo si cambiaron
|
||||||
if test "$ENTORNO/etc/apk/world" -ot "$DIR/packages"; then
|
if test "$ENTORNO/etc/apk/world" -ot "$DIR/packages"; then
|
||||||
echo "Instalando paquetes..." >&2
|
echo "Instalando paquetes..." >&2
|
||||||
packages="$(cat "$DIR/packages" | tr "\n" " ")"
|
packages="$(tr "\n" " " < "$DIR/packages")"
|
||||||
correr "apk add --no-cache $packages"
|
correr "apk add --no-cache $packages"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ case $1 in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test $HAIN_ENV; then
|
if test "$HAIN_ENV"; then
|
||||||
${*:-$DEFAULT}
|
${*:-$DEFAULT}
|
||||||
else
|
else
|
||||||
crear_entorno
|
crear_entorno
|
||||||
|
|
Loading…
Reference in a new issue