From b313665026e65bd80e2187afd75ae7f0872548fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 11 Nov 2025 06:55:28 +0300 Subject: [PATCH] change cbr path --- cbr.get | 2 +- publish | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 publish diff --git a/cbr.get b/cbr.get index 66c2ee8..80833a4 100755 --- a/cbr.get +++ b/cbr.get @@ -1,4 +1,4 @@ #!/bin/bash URL=https://www.cbr.ru/scripts/XML_daily.asp -OUT=/var/www/html/cbr.xml +OUT=/var/www/html/cbr/cur.xml wget $URL -O $OUT diff --git a/publish b/publish new file mode 100755 index 0000000..a5997c0 --- /dev/null +++ b/publish @@ -0,0 +1,24 @@ +#!/bin/bash +SDIR=$(cd "$(dirname "$0")" ; pwd -P) + +DBG_DIR=/var/www/dbg +DST_DIR=/var/www/html + +rsync -aivc --delete $DBG_DIR + + +$CONNECT_SRC_DIR/Utilities/ucim-spm/local/ivac $DST_DIR/Modules + +# Find out the latest commit in the whole repo +#git branch -av --sort=-committerdate +#git branch -av --sort=-committerdate | tr -s ' ' | head -n1 +cmt=`git branch -av --sort=-committerdate | tr -s ' ' | head -n1 | cut -d' ' -f3` +echo "Latest commit: $cmt" + +# Switch to the latest commit +git checkout -f $cmt + +# Copy dist +mkdir -p $DST_DIR +rm -fR $DST_DIR/* +cp -R dist/* $DST_DIR