Daniel Quathamer
2 years ago
24 changed files with 296 additions and 13 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash |
||||
#Synchronisierung webapp zum Zielserver |
||||
#Benutzer Variablen: |
||||
#REMOTE_HOST ->Ziel-Hostname |
||||
#REMOTE_USER ->Ziel-Benutzerkennung |
||||
#REMOTE_DIR -> Zielpfad |
||||
|
||||
#TODO: in LOCAL_DIR gelöschte Dateien werden nicht im REMOTE_DIR gelöscht |
||||
|
||||
if [ "$LOCAL_DIR" = "" ] |
||||
then |
||||
LOCAL_DIR=`pwd` |
||||
fi |
||||
|
||||
if [ "$REMOTE_DIR" = "" ] |
||||
then |
||||
REMOTE_DIR=$WEBAPP |
||||
fi |
||||
|
||||
echo "Sync von $LOCAL_DIR nach $REMOTE_DIR" |
||||
|
||||
|
||||
if [ "$REMOTE_HOST" = "" ] |
||||
then |
||||
rsync -L -rauvz $LOCAL_DIR/superx/* $REMOTE_DIR |
||||
else |
||||
rsync -L -rauvz -e ssh $LOCAL_DIR/superx/* "$REMOTE_USER"@"$REMOTE_HOST":$REMOTE_DIR |
||||
fi |
||||
|
@ -1,7 +1,28 @@
@@ -1,7 +1,28 @@
|
||||
#!/bin/bash |
||||
#Synchronisierung webapp zum Zielpfad |
||||
#Synchronisierung webapp zum Zielserver |
||||
#Benutzer Variablen: |
||||
#REMOTE_HOST ->Ziel-Hostname |
||||
#REMOTE_USER ->Ziel-Benutzerkennung |
||||
#REMOTE_DIR -> Zielpfad |
||||
|
||||
ant -DMODULE_PATH=$MEINMODUL_PFAD -DBASE_DIR=. -DMODULE=meinmodul all |
||||
if [ "$LOCAL_DIR" = "" ] |
||||
then |
||||
LOCAL_DIR=`pwd` |
||||
fi |
||||
|
||||
if [ "$REMOTE_DIR" = "" ] |
||||
then |
||||
REMOTE_DIR=$SUPERX_DIR |
||||
fi |
||||
|
||||
echo "Sync von $LOCAL_DIR nach $REMOTE_DIR" |
||||
|
||||
if [ "$REMOTE_HOST" = "" ] |
||||
then |
||||
rsync -L -rauvz $LOCAL_DIR/superx/WEB-INF/conf/edustore/db/* $REMOTE_DIR/db |
||||
rsync -L -rauvz $LOCAL_DIR/superx/* $REMOTE_DIR/webserver/tomcat/webapps/superx |
||||
else |
||||
rsync -L -rauvz -e ssh $LOCAL_DIR/superx/WEB-INF/conf/edustore/db/* "$REMOTE_USER"@"$REMOTE_HOST":$REMOTE_DIR/db |
||||
rsync -L -rauvz -e ssh $LOCAL_DIR/superx/* "$REMOTE_USER"@"$REMOTE_HOST":$REMOTE_DIR/webserver/tomcat/webapps/superx |
||||
fi |
||||
|
||||
|
@ -1 +1,38 @@
@@ -1 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"/> |
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from maskeninfo where tid = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from felderinfo where tid in |
||||
(select felderinfo_id from masken_felder_bez where maskeninfo_id = 8000); |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from masken_felder_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from sachgeb_maske_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from maske_system_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="importFile"> |
||||
<dbi:data database="eduetl" table="maskeninfo"> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="n" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_maskeninfo.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="importFile"> |
||||
<dbi:data database="eduetl" table="felderinfo"> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="n" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_felderinfo.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="importFile"> |
||||
<dbi:data database="eduetl" table="masken_felder_bez"> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="n" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_masken_felder_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="importFile"> |
||||
<dbi:data database="eduetl" table="sachgeb_maske_bez"> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="n" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_sachgeb_maske_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="importFile"> |
||||
<dbi:data database="eduetl" table="maske_system_bez"> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="n" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_maske_system_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
</dbi:dbactions> |
||||
|
@ -1 +1,38 @@
@@ -1 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"/> |
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"> |
||||
<dbi:dbaction dbi:action="exportFile"> |
||||
<dbi:data sqlVarDatabase="" database="eduetl"> |
||||
<extraction-sql>select * from maskeninfo where tid = 8000; |
||||
</extraction-sql> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="y" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_maskeninfo.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="exportFile"> |
||||
<dbi:data sqlVarDatabase="" database="eduetl"> |
||||
<extraction-sql>select * from felderinfo where tid in |
||||
(select felderinfo_id from masken_felder_bez where maskeninfo_id = 8000); |
||||
</extraction-sql> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="y" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_felderinfo.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="exportFile"> |
||||
<dbi:data sqlVarDatabase="" database="eduetl"> |
||||
<extraction-sql>select * from masken_felder_bez where maskeninfo_id = 8000; |
||||
</extraction-sql> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="y" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_masken_felder_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="exportFile"> |
||||
<dbi:data sqlVarDatabase="" database="eduetl"> |
||||
<extraction-sql>select * from sachgeb_maske_bez where maskeninfo_id = 8000; |
||||
</extraction-sql> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="y" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_sachgeb_maske_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="exportFile"> |
||||
<dbi:data sqlVarDatabase="" database="eduetl"> |
||||
<extraction-sql>select * from maske_system_bez where maskeninfo_id = 8000; |
||||
</extraction-sql> |
||||
<dbi:file encoding="UTF-8" separator="^" trailingSeparator="y" withNativeClient="y" firstLinedescription="n" structure="CSV" filename="$MYJOBS_PFAD/masken/8000_maske_system_bez.unl"/> |
||||
</dbi:data> |
||||
</dbi:dbaction> |
||||
</dbi:dbactions> |
||||
|
@ -1 +1,13 @@
@@ -1 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"/> |
||||
<?xml version="1.0" encoding="UTF-8"?><dbi:dbactions xmlns:dsd="http://www.his.de/Abt1/Interfaces/dsd_V1.0" xmlns:dbi="http://www.his.de/Abt1/Interfaces/dbi_V1.0" dbi:want-result="true" dbi:autocommit="true"> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from maskeninfo where tid = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from felderinfo where tid in |
||||
(select felderinfo_id from masken_felder_bez where maskeninfo_id = 8000); |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from masken_felder_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from sachgeb_maske_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
<dbi:dbaction dbi:action="sqlexec">eduetl:delete from maske_system_bez where maskeninfo_id = 8000; |
||||
</dbi:dbaction> |
||||
</dbi:dbactions> |
||||
|
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
8000^Datei^40^0^0^150^150^1^char^200^0^19^^hidden^ ^ |
||||
8001^Job^20^0^0^150^150^1^integer^200^1^1^<<SQL>> select tid,caption from sx_jobs where\ |
||||
sachgebiete_id in (1400)\ |
||||
order by 2^ ^ ^ |
||||
8002^Jahr^10^0^0^100^200^1^integer^30^1^1^<<SQL>> SELECT ord,name FROM aggregierung where kategorie='KENN-Jahr' order by 1 desc;^hidden^<<SQL>> SELECT ord,name FROM aggregierung where kategorie='KENN-Jahr' and ord=(year(today())-1) ;^ |
||||
8003^dokettlejob^100^0^0^150^400^1^char^10^0^0^^hidden^ ^ |
||||
8004^Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, druck from kenn_semester order by tid DESC;^hidden^<<SQL>> select tid,druck from kenn_semester where today() between sem_beginn and sem_ende;^ |
||||
8005^Modus^50^0^0^150^250^1^integer^30^1^1^<<SQL>>select 1,'Hinzufügen' from xdummy union select 2,'Alles löschen und hinzufügen' from xdummy;^hidden^<<SQL>> select 2,'Alles löschen und hinzufügen' from xdummy;^ |
||||
8006^Organisationseinheit^1^0^0^100^100^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Kern-Kostenstellen-Sicht' order by sortnr;^^^ |
||||
8007^maxoffset^100^0^0^150^400^1^integer^10^0^0^^hidden^100000^ |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
8000^109^ |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
8000^8000^ |
||||
8000^8001^ |
||||
8000^8002^ |
||||
8000^8003^ |
||||
8000^8004^ |
||||
8000^8005^ |
||||
8000^8006^ |
||||
8000^8007^ |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
8000^Jobmonitor ausführen^--Freemarker Template\ |
||||
\ |
||||
select 'job' from xdummy;^--Freemarker Template\ |
||||
Column CID=6 heading_text="Import\\nKommentar" center_heading\ |
||||
row_selectable col_selectable rightJust heading_platform readonly\ |
||||
width=10\ |
||||
@@@^Fachsemester^Anzahl^Beispiel-Ladejob für dezentralen Einsatz an der Hochschule^ ^^1^600^360^0^^^ |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
114^8000^ |
@ -0,0 +1,41 @@
@@ -0,0 +1,41 @@
|
||||
--Freemarker Template |
||||
--Achtung: Macro fügt Inhalte ein |
||||
--Bitte nur Freemarker Variablen füllen |
||||
<sqlvars> |
||||
<sqlvar name="sx_jobs_exists">select sp_table_exists('sx_jobs') from xdummy;</sqlvar> |
||||
</sqlvars> |
||||
|
||||
<#assign jobs = [ |
||||
{"uniquename":"jobmonitor", "caption":"Jobmonitor", "filepath":"myjobs/etl/jobmonitor/jobmonitor_logausgabe.kjb","sachgebiete_id":1400, |
||||
"kenn_profil":"","hs_nr":"","modus_supported":1,"params":"", |
||||
"check_sql":"select count(*) from xdummy"} |
||||
] /> |
||||
|
||||
|
||||
|
||||
|
||||
--- Freemarker Magic |
||||
<#if sx_jobs_exists=1> |
||||
<#foreach job in jobs> |
||||
delete from sx_jobs where uniquename='${job.uniquename}'; |
||||
</#foreach> |
||||
<#if SQLdialect='Postgres'> |
||||
select sp_update_sequence('sx_jobs'); |
||||
</#if> |
||||
<#foreach job in jobs> |
||||
insert into sx_jobs (uniquename,caption,filepath,sachgebiete_id,kenn_profil,hs_nr,modus_supported,params |
||||
<#if SQLdialect='Postgres'>,check_sql |
||||
</#if>) |
||||
values ('${job.uniquename}','${job.caption}','${job.filepath}',${job.sachgebiete_id},<#if job.kenn_profil!="">${job.kenn_profil}<#else>null::integer</#if>, |
||||
<#if job.hs_nr!="">${job.hs_nr}<#else>null::integer</#if>,${job.modus_supported},'${job.params}' |
||||
<#if SQLdialect='Postgres'> |
||||
,'${job.check_sql}' |
||||
</#if> |
||||
); |
||||
</#foreach> |
||||
|
||||
<#if SQLdialect='Postgres'> |
||||
select sp_update_sequence('sx_jobs'); |
||||
</#if> |
||||
|
||||
</#if> |
Loading…
Reference in new issue