cleanup of the presentation generation process

Clean up some bash scripts, that are used for the generation of the
presentation.

Some improvements:
* Only ssh to fsmi-login if not already running on a fsmi host.
* Use the defined postgresql service instead of manually specifing the host
* Fix bugs that could occure when having spaces in filenames
* Find the fslogo.png in the root when generating the presentation

Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
This commit is contained in:
Tobias Wiese
2021-04-28 01:31:01 +02:00
committed by Yannik Enss
parent 1c9eb8535d
commit 6f5325678f
4 changed files with 40 additions and 16 deletions

View File

@@ -138,7 +138,7 @@ if __name__ == "__main__":
parser.add_argument("--send-mail", action="store_true")
args = parser.parse_args()
config = yaml.full_load(open(args.config))
config = yaml.safe_load(open(args.config))
if config["redeleitung"]["name"].startswith("./"):
with open(config["redeleitung"]["name"]) as f: