fix: no correr como root

This commit is contained in:
f
2026-04-20 11:57:57 -03:00
parent e27369a0f9
commit 2f836ee933
2 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,11 @@ set -e
ok () { echo "ok -- $@" >&2; }
not_ok () { echo "not ok -- $@" >&2; }
if test $UID -eq 0 ; then
not_ok "No correr con sudo!"
exit 1
fi
if ! which abra &>/dev/null; then
curl https://install.abra.coopcloud.tech | bash

View File

@ -4,11 +4,16 @@ set -e
ok () { echo "ok -- $@" >&2; }
not_ok () { echo "not ok -- $@" >&2; }
if test $UID -eq 0 ; then
not_ok "No correr con sudo!"
exit 1
fi
abra servidor agregar --local
if ! test -d ~/certificados; then
ok "Clonando repositorio de certificados"
git clone https://git.coopcloud.tech/escuela-comun/certificados ~/certificados
git clone https://git.coopcloud.tech/escuela-comun/certificados.git ~/certificados
fi
cd ~/certificados