aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/update
diff options
context:
space:
mode:
authorM.Gergo2018-08-26 10:11:34 +0200
committerM.Gergo2018-08-26 10:11:34 +0200
commit228488d05c55a9e6a0a405f7a0e90fc3aab43f87 (patch)
treef72a5e33b4394c633edb2368ef14df3c50d8390b /mayor-orig/update
parent2f5969b827ff17ee05e05f46025367017fdfcf44 (diff)
downloadmayor-228488d05c55a9e6a0a405f7a0e90fc3aab43f87.tar.gz
mayor-228488d05c55a9e6a0a405f7a0e90fc3aab43f87.zip
Rev: 4344
Diffstat (limited to 'mayor-orig/update')
-rw-r--r--mayor-orig/update/processUpdateScripts.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/mayor-orig/update/processUpdateScripts.sh b/mayor-orig/update/processUpdateScripts.sh
index a63578e6..7a96ffef 100644
--- a/mayor-orig/update/processUpdateScripts.sh
+++ b/mayor-orig/update/processUpdateScripts.sh
@@ -46,7 +46,9 @@ fi
# --
run_script() {
- FILEELEJE=`echo $FILE | cut -f 1 -d '-'`
+ # FILEELEJE=`echo $FILE | cut -f 1 -d '-'`
+ # patch by Acsai Gabor <acsi@c3.hu> - FreeBSD
+ FILEELEJE=$(basename $FILE | cut -f 1 -d '-')
FILEREV=${FILEELEJE: -6}
LOGSQL=""
if [ "$FILEREV" != "" ]; then
@@ -55,14 +57,18 @@ run_script() {
fi
fi
if [ ! "${FILEREV}" \< "${REVSTR}" ]; then
- FILEEXT=`echo $FILE | cut -f 2 -d '.'`
+ # FILEEXT=`echo $FILE | cut -f 2 -d '.'`
+ # patch by Acsai Gabor <acsi@c3.hu> - FreeBSD
+ FILEEXT=$(basename $FILE | cut -f 2 -d '.')
if [ "$FILEEXT" == "sh" ]; then
echo " - Szkript futtatása ($FILE)..."
. $FILE
if [ $? != 0 ]; then exit 13; fi
elif [ "$FILEEXT" == "sql" ]; then
echo " - SQL utasítások végrehajtása ($FILE)..."
- FILEDB=`echo $FILE | cut -f 1 -d '.' | cut -f 3 -d '-'`
+ # FILEDB=`echo $FILE | cut -f 1 -d '.' | cut -f 3 -d '-'`
+ # patch by Acsai Gabor <acsi@c3.hu> - FreeBSD
+ FILEDB=$(basename $FILE | cut -f 1 -d '.' | cut -f 3 -d '-')
case "$FILEDB" in
naplo)
DBS=$DB_NAPLO