Skip to content

Commit

Permalink
fix for issue sbt#529
Browse files Browse the repository at this point in the history
- use numeric rather than string test in conditional
- add missing semicolon
  • Loading branch information
dwhjames committed Apr 5, 2015
1 parent 890a383 commit 155d126
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}:";
Expand Down

0 comments on commit 155d126

Please sign in to comment.