projects
/
projects.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3510224
)
posaune
author
Michael Wagner
<michael@wagnertech.de>
Thu, 4 Apr 2019 16:35:05 +0000
(18:35 +0200)
committer
Michael Wagner
<michael@wagnertech.de>
Thu, 4 Apr 2019 16:35:05 +0000
(18:35 +0200)
debian/sysd2sysv.postinst
patch
|
blob
|
history
diff --git
a/debian/sysd2sysv.postinst
b/debian/sysd2sysv.postinst
index
ed31461
..
e47abd8
100755
(executable)
--- a/
debian/sysd2sysv.postinst
+++ b/
debian/sysd2sysv.postinst
@@
-5,15
+5,16
@@
set -e
pushd /etc/init.d >/dev/null
for file in $(ls)
do
- if grep "# sysd2sysv-template #" $file
+ if grep "# sysd2sysv-template #" $file
>/dev/null
then
- rm $file
+ echo "renew $file from template"
+ sed "s/%PROG%/$file/" /var/sysd2sysv/sysd2sysv.tpl > $file
fi
done
# for downward compatibility
if [ -f mlistd ]
then
-
rm
mlistd
+
sed "s/%PROG%/mlistd/" /var/sysd2sysv/sysd2sysv.tpl >
mlistd
fi