-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.conf
32 lines (25 loc) · 889 Bytes
/
app.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh config_no_run
# before first run "etc/rename_files_pre.sh" must be removed, if daemon was updated
APP='testing' # or not, for production
SYNCTIME='4' # seconds
TGZ='no'
# local dirs / they are also remote dirs with inversed meaning
# write files with extention $DATAEXT here
DDIR='_data/' # then write start flag file 'go'
IDIR='_data/income/' # start flag file is 'og'
# remote
RDIRHOSTN='sftp://example.com:1234/remote_files_root_dir/'
RDIRLOGIN='username,password'
#RAPP='http://example.com/import_new_xml.php' TODO
# general cfg of files to be transferred
DATAEXT='xml'
PREEXT='-pre'
cygwin() {
LAPP='wscript ..\\..\\etc\\connect_master.wsf'
}
linux_gnu() {
LAPP='wget || curl || lftp GET http://localhost/sync_dir.php' # possible local action
}
[ 'cygwin' = "$OSTYPE" ] && cygwin || linux_gnu
export LAPP RAPP
APPLOGS='logs/'