Revision 6c9e1d69
Added by David Sorber over 7 years ago
| software/hbkcd/conf/logrotate/hbkcd | ||
|---|---|---|
|
/var/log/hbkcd/hbkcd.log {
|
||
|
rotate 5
|
||
|
size 1M
|
||
|
compress
|
||
|
compresscmd /usr/bin/pbzip2
|
||
|
compressext .bz2
|
||
|
missingok
|
||
|
notifempty
|
||
|
}
|
||
| software/hbkcd/install.sh | ||
|---|---|---|
|
exit -1
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
printf "\n\n"
|
||
|
|
||
|
# Check each Python module dependency
|
||
| ... | ... | |
|
exit -1
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
printf "\n\n"
|
||
|
|
||
|
# Install systemd config
|
||
| ... | ... | |
|
./setup.py install
|
||
|
printf "\n\n"
|
||
|
|
||
|
# Install scripts
|
||
|
# Install scripts and logrotate config
|
||
|
printf "Installing hbkcd scripts..."
|
||
|
install -m 755 scripts/hbkcd_add.sh /usr/local/bin/hbkcd_add
|
||
|
install -m 755 scripts/hbkcd_queue.sh /usr/local/bin/hbkcd_queue
|
||
|
install -m 755 scripts/hbkcd_remove.sh /usr/local/bin/hbkcd_remove
|
||
|
install -m 755 scripts/hbkcd_status.sh /usr/local/bin/hbkcd_status
|
||
|
printf "DONE\n"
|
||
|
printf "Installing logrotate config..."
|
||
|
install -m 644 -o root -g root conf/logrotate/hbkcd /etc/logrotate.d/hbkcd
|
||
|
printf "DONE\n"
|
||
|
printf "\n\n"
|
||
|
|
||
|
# Start or restart hbckd
|
||
| software/hbkcd/setup.py | ||
|---|---|---|
|
|
||
|
setup(
|
||
|
name = 'hbkcd',
|
||
|
version = '0.2.0',
|
||
|
version = '0.3.0',
|
||
|
description = 'HandBrake Control Daemon',
|
||
|
packages = find_packages(),
|
||
|
python_requires = '>=3.6.0',
|
||
Adding logrotate configuration. Version 0.3.0.