Bug fixes

This commit is contained in:
Guillermo
2026-02-12 11:19:18 +00:00
parent 6a8ffe5da8
commit 9effa23d3b
2 changed files with 10 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ set -euo pipefail
###############################################
# TODO: pon aquí la URL real de tu repo (sin credenciales)
REPO_URL_DEFAULT="https://github.com/igferne/Beyond-Diagnosis.git"
INSTALL_BASE="/home/garbelo/"
INSTALL_BASE="/opt/beyondcx"
###############################################
# UTILIDADES
@@ -37,7 +37,7 @@ if [ -z "$DOMAIN" ]; then
echo "El dominio no puede estar vacío."
exit 1
fi
SUBDOMAIN="$DOMAIN%%.*"
SUBDOMAIN=${DOMAIN%%.*}
INSTALL_DIR=$INSTALL_BASE"/"$SUBDOMAIN
read -rp "Email para Let's Encrypt (avisos de renovación): " EMAIL
if [ -z "$EMAIL" ]; then
@@ -164,6 +164,9 @@ fi
###############################################
step "Descargando/actualizando el repositorio en $INSTALL_DIR"
eval $(ssh-agent -s)
ssh-add /home/garbelo/.ssh/id_ed25519
if [ -d "$INSTALL_DIR/.git" ]; then
echo "Directorio git ya existe, haciendo 'git pull'..."
git -C "$INSTALL_DIR" pull --ff-only