Bug fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user