forked from escuela-comun/huerta-init
fix: no correr como root
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user