From 155d1261d20c6341586c2b030b29896bca18f760 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 5 Apr 2015 12:47:43 -0400 Subject: [PATCH] fix for issue #529 - use numeric rather than string test in conditional - add missing semicolon --- .../sbt/packager/archetypes/java_server/rpm/postun-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/rpm/postun-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/rpm/postun-template index 7413264b7..4d38e70dd 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/rpm/postun-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/java_server/rpm/postun-template @@ -4,7 +4,7 @@ ${{control-functions}} # Scriptlet syntax: http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Syntax # $1 == 1 is upgrade and $1 == 0 is uninstall -if [[ $1 == 0 ]] +if [ $1 -eq 0 ] ; then echo "Try deleting system user and group [${{daemon_user}}:${{daemon_group}}]" if getent passwd | grep -q "^${{daemon_user}}:";