change cbr path
This commit is contained in:
2
cbr.get
2
cbr.get
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
URL=https://www.cbr.ru/scripts/XML_daily.asp
|
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
|
wget $URL -O $OUT
|
||||||
|
|||||||
24
publish
Executable file
24
publish
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user