2022-06-27 14:10:29 +02:00
|
|
|
#DEBHELPER#
|
|
|
|
|
2022-07-19 12:11:14 +02:00
|
|
|
sysUser="ffpu"
|
|
|
|
|
|
|
|
if ! id $sysUser &>/dev/null; then
|
2022-07-20 16:03:39 +02:00
|
|
|
adduser --system --no-create-home $sysUser
|
2022-07-19 12:11:14 +02:00
|
|
|
fi
|
|
|
|
|
2022-06-27 14:10:29 +02:00
|
|
|
if [ ! -d "/usr/share/ffplayout/db" ]; then
|
|
|
|
mkdir "/usr/share/ffplayout/db"
|
2022-07-19 13:34:31 +02:00
|
|
|
mkdir -p "/var/lib/ffplayout/playlists"
|
2022-07-19 12:11:14 +02:00
|
|
|
mkdir "/var/lib/ffplayout/tv-media"
|
2022-06-27 14:10:29 +02:00
|
|
|
|
|
|
|
/usr/bin/ffpapi -i
|
|
|
|
|
2022-07-19 12:11:14 +02:00
|
|
|
chown -R ${sysUser}. "/usr/share/ffplayout"
|
|
|
|
chown -R ${sysUser}. "/var/lib/ffplayout"
|
|
|
|
chown -R ${sysUser}. "/etc/ffplayout"
|
2022-06-27 14:10:29 +02:00
|
|
|
fi
|
2022-07-07 21:12:59 +02:00
|
|
|
|
|
|
|
if [ ! -d "/var/log/ffplayout" ]; then
|
2022-07-19 12:11:14 +02:00
|
|
|
mkdir "/var/log/ffplayout"
|
2022-07-07 21:12:59 +02:00
|
|
|
|
2022-07-19 12:11:14 +02:00
|
|
|
chown ${sysUser}. "/var/log/ffplayout"
|
2022-07-07 21:12:59 +02:00
|
|
|
fi
|