2024-02-08 23:46:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-02-09 22:41:30 +01:00
|
|
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
|
|
|
|
2024-02-09 22:49:27 +01:00
|
|
|
# ensure log folder is present
|
2024-02-08 23:46:19 +01:00
|
|
|
if [ ! -d /var/log/bashclub-zsync ]; then
|
|
|
|
mkdir -p /var/log/bashclub-zsync
|
2024-02-09 22:49:27 +01:00
|
|
|
chown -R root:root /var/log/bashclub-zsync
|
|
|
|
chmod -R 755 /var/log/bashclub-zsync
|
|
|
|
fi
|
|
|
|
|
|
|
|
chown root:root /usr/bin/bashclub-zsync
|
|
|
|
chmod 755 /usr/bin/bashclub-zsync
|
|
|
|
|
2024-03-11 22:46:12 +01:00
|
|
|
if [ -f /etc/logrotate.d/bashclub_zsync ]; then
|
|
|
|
rm -f /etc/logrotate.d/bashclub_zsync
|
|
|
|
fi
|
|
|
|
|
|
|
|
chown root:root /etc/logrotate.d/bashclub-zsync
|
|
|
|
chmod 644 /etc/logrotate.d/bashclub-zsync
|