[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
13
share/templates/slarchive/purge_datafiles.tpl
Normal file
13
share/templates/slarchive/purge_datafiles.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Generated at $date - Do not edit!
|
||||
# template: $template
|
||||
|
||||
CFGDIR="$slarchive._config_dir"
|
||||
ARCHIVE="$archive"
|
||||
|
||||
for rc in `find $$CFGDIR -name "rc_*"`; do
|
||||
station=$${rc##*_}
|
||||
source $$rc
|
||||
find "$$ARCHIVE"/*/"$$NET/$$STATION" -type f -follow -mtime +$$ARCH_KEEP -exec rm -f '{}' \;
|
||||
done
|
Reference in New Issue
Block a user