termux-services: add down and log/down to CONFFILES

Otherwise they are always added again when a package with a service
script is updated.
This commit is contained in:
Henrik Grimler 2020-03-20 20:06:37 +01:00
parent 7ab5ac7ca2
commit 6528540bbc

View File

@ -29,11 +29,13 @@ termux_step_install_service_scripts() {
# Avoid creating service/<service>/log/log/ # Avoid creating service/<service>/log/log/
if [ "${TERMUX_PKG_SERVICE_SCRIPT[$i]: -4}" != "/log" ]; then if [ "${TERMUX_PKG_SERVICE_SCRIPT[$i]: -4}" != "/log" ]; then
touch ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/down touch ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/down
TERMUX_PKG_CONFFILES+=" var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/down"
mkdir -p ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log mkdir -p ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log
ln -sf $TERMUX_PREFIX/share/termux-services/svlogger ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run ln -sf $TERMUX_PREFIX/share/termux-services/svlogger ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run
TERMUX_PKG_CONFFILES+=" TERMUX_PKG_CONFFILES+="
var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run
var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/down
" "
fi fi
done done