Bug Description

An environment's leadership changed, and the new leader started failing:

FileNotFoundError: [Errno 2] No such file or directory: '/var/log/repository-sync/repository-sync-cron.log'

This is because /var/log/repository-sync does not exist. I'm actually not sure how this worked at all since I believe /var/log/repository-sync/repository-sync-cron.log is part of a ~recent charm upgrade, and /var/log/repository-sync only appears to be created on the install hook.