Commit 48aa7192 authored by Thomas Liske's avatar Thomas Liske Committed by Leo
Browse files

community/smstools: use checkpath in initd to create non-public files

parent ff9251ff
Pipeline #41986 skipped
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=smstools
pkgver=3.1.21
pkgrel=0
pkgrel=1
_realname="${pkgname}${pkgver%\.[0-9]*\.[0-9]*}"
pkgdesc="SMS Gateway software which can send and receive short messages through GSM modems and mobile phones"
url="http://smstools3.kekekasvi.com/"
......@@ -60,6 +60,6 @@ package() {
}
sha512sums="0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31 smstools3-3.1.21.tar.gz
4e101ba553bdf4898b17e82a35a546b1ed64c215850b5c78da9ae68009fad84a3c53dd7f5825b05fe40e93c3ab3ed12a9baf47da91025f1e383a33431ee7c14e smstools.initd
31756bb80fb5b8ac8d1b8e29dae8926379ae2102e8931c06eb6713680e3a4d9ef5845b158e71cfe3e5d013b542341f8ec00acd1940f477d75c0fcd7d1c3e151a smstools.initd
cf2a6d605f49df10d172bc412983312d37b315e42bdb82b2ce27eda4aaaec8526a6548db293457f48aa70b8d911a4169c77682f68850bef4c084b27ca478db9d smstools.conf
668eed2143c1f08fe1deb27a20496317c77160f3278d68fbc54ac8008c5d266c0a2dc39551fd1ced92706bfffc0bc5ee7581e452670e3bff92837e598b98b10e smstools.logrotate"
......@@ -10,9 +10,7 @@ depend() {
start() {
if ! [ -d /var/run/smsd ]; then
ebegin "Creating /var/run/smsd for ${SVCNAME}"
mkdir /var/run/smsd \
&& chown smsd:smsd /var/run/smsd \
&& chmod 770 /var/run/smsd
checkpath -dm 770 -o smsd:smsd /var/run/smsd
eend $?
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment