[debian-edu-commits] debian-edu/ 03/08: Avoid error from grep when /etc/debian-edu/config is missing.
Alexander Alemayhu
alexander at bitraf.no
Thu Aug 7 07:20:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
ccscanf-guest pushed a commit to annotated tag 0.412.0.edu.etch.1+svn35034
in repository debian-edu-config.
commit bee05c8ba9b8b6cbb6a68322613a1431b7e5738b
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Mon Jun 25 21:35:51 2007 +0000
Avoid error from grep when /etc/debian-edu/config is missing.
---
debian/debian-edu-config.postinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/debian-edu-config.postinst b/debian/debian-edu-config.postinst
index c3d6c2d..f7f6223 100644
--- a/debian/debian-edu-config.postinst
+++ b/debian/debian-edu-config.postinst
@@ -73,7 +73,7 @@ db_stop
# start the enable-nat init script if we have a ltspserver
-if grep -q Thin-Client-Server /etc/debian-edu/config ; then
+if [ -f /etc/debian-edu/config ] && grep -q Thin-Client-Server /etc/debian-edu/config ; then
if ! grep -q Main-Server /etc/debian-edu/config ; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ] ; then
invoke-rc.d enable-nat start || exit $?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list