mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-07 16:57:17 +02:00
move pub files to /var/lib/pub-files
This commit is contained in:
parent
0883ba78cf
commit
d0d834f643
|
@ -7,7 +7,7 @@
|
|||
"files.${config.dump-dvb.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/lib/data-accumulator/";
|
||||
root = "/var/lib/pub-files/";
|
||||
extraConfig = ''
|
||||
autoindex on;
|
||||
'';
|
||||
|
|
|
@ -43,10 +43,10 @@
|
|||
|
||||
psql -d dvbdump -c "COPY (SELECT id, to_char(time::timestamp at time zone 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS') time, station, telegram_type, delay, reporting_point, junction, direction, request_status, priority, direction_request, line, run_number, destination_number, train_length, vehicle_number, operator FROM r09_telegrams) TO '$TMPFILE' DELIMITER ',' HEADER CSV;"
|
||||
|
||||
cp $TMPFILE /var/lib/data-accumulator/telegram-dump.csv
|
||||
cp $TMPFILE /var/lib/pub-files/postgres-dumps/telegram-dump.csv
|
||||
rm -f $TMPFILE
|
||||
|
||||
chmod a+r /var/lib/data-accumulator/telegram-dump.csv
|
||||
chmod a+r /var/lib/pub-files/postgres-dumps/telegram-dump.csv
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user