termux_step_install_service_scripts: log services should be enabled

This commit is contained in:
Henrik Grimler 2020-01-08 19:57:28 +01:00
parent 008ec4b6b0
commit 54baabcffe
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://transmissionbt.com/
TERMUX_PKG_DESCRIPTION="Easy, lean and powerful BitTorrent client"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=2.94
TERMUX_PKG_REVISION=5
TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL=https://github.com/transmission/transmission/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=440c2fd0f89b1ab59d8a4b79ecd7bffd61bc000e36fb5b6c8e88142a4fadbb1f
TERMUX_PKG_DEPENDS="libcurl, libevent, miniupnpc, openssl"

View File

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