aboutsummaryrefslogtreecommitdiffstats
path: root/mayor/bin/update.sh
diff options
context:
space:
mode:
authorM.Gergo2018-03-04 17:54:42 +0100
committerM.Gergo2018-03-04 17:54:42 +0100
commit251b9285c49688f127fa523a715d924f8bcf7f4b (patch)
tree97b2ef9bdcbcd7303de8e3322a841755d8d73d02 /mayor/bin/update.sh
parent9680ed5cfc887130300757c9c373d00786f97872 (diff)
downloadmayor-251b9285c49688f127fa523a715d924f8bcf7f4b.tar.gz
mayor-251b9285c49688f127fa523a715d924f8bcf7f4b.zip
mayor backup: mysql/dump utf8 megkövetelése,
mayor backup: alapértelmezett lock-olás mayor backup --now: azonnali mentés lehetősége, mayor backup --skip-lock: lock-olás kihagyása +bőbeszédűbb log-olás lehetősége +új paraméterek a main-conf-ba: #======================# # Main # #======================# MYSQLDUMP=/usr/bin/mysqldump VERBOSE=2 ## 0,1,2 lehetséges
Diffstat (limited to 'mayor/bin/update.sh')
-rw-r--r--mayor/bin/update.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/mayor/bin/update.sh b/mayor/bin/update.sh
index 0be82608..19585df2 100644
--- a/mayor/bin/update.sh
+++ b/mayor/bin/update.sh
@@ -117,7 +117,7 @@ if [ -z "${REV:-}" ]; then
exit 9
fi
if [ -f $REVISION_FILE ]; then
- REV=`cat $REVISION_FILE`
+ REV=$(cat $REVISION_FILE)
else
REV=0
fi
@@ -142,7 +142,7 @@ if [ "$EXECONLY" != "1" ]; then
echo -n " $MODULE... "
chmod +x $BASEDIR/bin/mayor
if [ $? != 0 ]; then exit 2; fi
- UJ_REV=`$SVN --force export https://svn.mayor.hu/svn/trunk/$MODULE/update "$BASEDIR/update" | grep revision | cut -d ' ' -f 3 | uniq | sed -e 's/\.//g'`
+ UJ_REV=$($SVN --force export https://svn.mayor.hu/svn/trunk/$MODULE/update "$BASEDIR/update" | grep revision | cut -d ' ' -f 3 | uniq | sed -e 's/\.//g')
if [ $? != 0 ]; then exit 3; fi
echo "kész."
done
@@ -168,13 +168,13 @@ if [ "$EXECONLY" != "1" ]; then
if [[ ! $HTTP_SERVER =~ .*$VERSION.* ]]; then HTTP_SERVER="$HTTP_SERVER/$VERSION"; fi
fi
if [ $? != 0 ]; then exit 5; fi
- UJ_REV=`grep Revision md5sum | cut -d ' ' -f 2`
+ UJ_REV=$(grep Revision md5sum | cut -d ' ' -f 2)
if [ "$REV" -lt "$UJ_REV" ]; then
# csomagok leszedése
for MODULE in $MODULES; do
echo -n " $MODULE... "
- MOD=`echo $MODULE | sed "s#/#-#"`
- FILE=`grep "$MOD-rev" md5sum | cut -d ' ' -f 3`
+ MOD=$(echo $MODULE | sed "s#/#-#")
+ FILE=$(grep "$MOD-rev" md5sum | cut -d ' ' -f 3)
if [ "$FILE" != '' ]; then
wget "$HTTP_SERVER/$FILE"
if [ $? != 0 ]; then
@@ -199,7 +199,7 @@ if [ "$EXECONLY" != "1" ]; then
fi
else # exec-only
if [ -f $REVISION_FILE ]; then
- UJ_REV=`cat $REVISION_FILE`
+ UJ_REV=$(cat $REVISION_FILE)
else
UJ_REV=0 # nem frissítünk semmit
fi
@@ -215,7 +215,7 @@ else
. $BASEDIR/update/processUpdateScripts.sh
fi
-PWDTEX=`pwd`
+PWDTEX=$(pwd)
echo -e "\nMaYoR TeX formátum állomány újragenerálása... "
cd $BASEDIR/print/module-naplo/tex/ && fmtutil-sys --cnffile $BASEDIR/print/module-naplo/tex/mayor.cnf --fmtdir $BASEDIR/print/module-naplo/ --byfmt mayor > /dev/null 2>&1
echo -e "\nMaYoR XeTeX formátum állomány újragenerálása... "