Files
fsr_generator/get_last_proto.sh
2021-03-04 21:49:52 +01:00

7 lines
244 B
Bash
Executable File

#!/bin/bash -e
read -s -p "DB-Passwort: " password;
echo
echo $password | ssh fsmi "psql -A -t -h fsmi-db fsmi -c \"select protokoll from protokolle where ist_veroeffentlicht='f' order by datum desc limit 1\"" 2> /dev/null > data/last_proto