aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts/reconfigure.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-27 14:41:36 -0300
committerEuAndreh <eu@euandre.org>2023-03-27 15:06:51 -0300
commit2bbe3fd19e1f057a7129365cdb4ef5e9336e977e (patch)
tree629054488757080873a557ab31ae89c537fa2605 /src/infrastructure/scripts/reconfigure.sh
parentrc.sh: Conditionally "mkdir -p $XDG_*" (diff)
downloadserver-2bbe3fd19e1f057a7129365cdb4ef5e9336e977e.tar.gz
server-2bbe3fd19e1f057a7129365cdb4ef5e9336e977e.tar.xz
src/infrastructure/config/conf.env: Use file to parameterize reconfigure(8) and report(8) scripts
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show 2bbe3fd19e1f057a7129365cdb4ef5e9336e977e git notes --ref=refs/notes/ci-data show 2bbe3fd19e1f057a7129365cdb4ef5e9336e977e Exit status: 128 Duration: 0
Diffstat (limited to 'src/infrastructure/scripts/reconfigure.sh')
-rwxr-xr-xsrc/infrastructure/scripts/reconfigure.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/infrastructure/scripts/reconfigure.sh b/src/infrastructure/scripts/reconfigure.sh
index 945f115..ed3da6f 100755
--- a/src/infrastructure/scripts/reconfigure.sh
+++ b/src/infrastructure/scripts/reconfigure.sh
@@ -85,8 +85,10 @@ while getopts 'nUh' flag; do
done
shift $((OPTIND - 1))
+# shellcheck source=/dev/null
+. /etc/conf.env
SHA="${1:-main}"
-REPO='/srv/git/servers.git'
+REPO="/srv/git/$REPO_NAME"
NOW="$(date '+%Y-%m-%dT%H:%M:%S%:z')"
NOW_DIR=/opt/deploy/"$NOW"
NPROC=$(($(nproc) * 2 + 1))
@@ -135,6 +137,7 @@ else
--chown=deployer:deployer \
-a \
--exclude='dev/ci/*' \
- /run/current-system/profile/share/doc/servers/ /srv/www/s/servers/
+ /run/current-system/profile/share/doc/"$NAME"/ "$HTML_OUTDIR"
+
deploy
fi