eliminacion-localhost

This commit is contained in:
2026-03-05 23:13:15 +01:00
parent 8d8cc97bef
commit 0b8fe7bbec
3 changed files with 104 additions and 36 deletions

View File

@@ -1,11 +1,12 @@
#!/bin/bash
# Despliega static/ en release/project-a13tv/
SRC="$(dirname "$(realpath "$0")")/static"
DST="$(dirname "$(realpath "$0")")/release/project-a13tv"
# Despliega static/ y channels.json en release/project-a13tv/
PROJ="$(dirname "$(realpath "$0")")"
SRC="$PROJ/static"
DST="$PROJ/release/project-a13tv"
echo "Desplegando en $DST ..."
# --no-group --no-owner: no intenta cambiar propietario/grupo en destino
rsync -rlt --no-group --no-owner --chmod=ug+rw "$SRC/" "$DST/"
sg webedit -c "rsync -rlt --no-group --no-owner --chmod=ug+rw \"$SRC/\" \"$DST/\""
sg webedit -c "cp \"$PROJ/channels.json\" \"$DST/channels.json\""
echo "Despliegue completado."