From 38815219530bcbe1b2fe551bd97ba5340374c554 Mon Sep 17 00:00:00 2001
From: Stephanie Briere Americo <sba16@c3sl.ufpr.br>
Date: Wed, 25 Jul 2018 11:42:36 -0300
Subject: [PATCH] SCRUM#578: family shield disabled by default when installing
 in private mode

---
 package/debian/changelog | 6 ++++++
 package/debian/postinst  | 5 ++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/package/debian/changelog b/package/debian/changelog
index a36fad2..4792282 100644
--- a/package/debian/changelog
+++ b/package/debian/changelog
@@ -1,3 +1,9 @@
+le-parental-control (0.0.10ubuntu1) unstable; urgency=medium
+
+  * Family shild is disable by default when installing in private mode
+
+ -- Stephanie Briere Americo <lesuporte@c3sl.ufpr.br>  Wed, 25 Jul 2018 11:35:53 -0300
+
 le-parental-control (0.0.10) unstable; urgency=medium
 
   * Add more testing stages on CI (Closes: #463)
diff --git a/package/debian/postinst b/package/debian/postinst
index 757d475..e238949 100755
--- a/package/debian/postinst
+++ b/package/debian/postinst
@@ -19,14 +19,13 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 # USA.
-
 set -e
 case "$1" in
     configure)
     ############## Family Shield ##############
 
-    #if install
-    if [ -z "$2" ]; then
+    #if install in school mode
+    if grep -q "Escola" /etc/default/version && [ -z "$2" ]; then
       family-shield -e
     fi
 
-- 
GitLab