Files
upstream-jicofo/debian/preinst
upstream-mirror fcbc274d01
Some checks failed
Java CI with Maven / Java 21 (push) Failing after 4m41s
Java CI with Maven / Java 17 (push) Failing after 4m42s
snapshot of https://github.com/jitsi/jicofo.git @ 9ab59aa3d348e282da89da2c9f11ecbecd3f7b79 (2026-09-15)
2026-09-15 16:13:53 +05:00

15 lines
437 B
Bash

#!/bin/bash
# preinst script for jicofo
set -e
echo "Running preinst $@"
if [ "$1" == "upgrade" ] ;then
if [ -d /etc/logrotate.d/jicofo ] ;then
# An earlier version of the package incorrectly installed a directory in logrotate.d. If that's the case
# remove it, so the file can be properly installed.
echo "/etc/logrotate.d/jicofo is a directory, removing."
rm -rf /etc/logrotate.d/jicofo
fi
fi