Commit ca811126 authored by Praveen Arimbrathodiyil's avatar Praveen Arimbrathodiyil
Browse files

fix if syntax

parent 8dec4ea7
......@@ -19,7 +19,7 @@ case "$1" in
# been purged.
:
# stop the service if running
if [ service diaspora status >/dev/null ]; then
if service diaspora status >/dev/null; then
service diaspora stop
fi
......@@ -71,7 +71,7 @@ case "$1" in
done
fi
echo "Removing user: diaspora"
if [ id -u diaspora ]; then
if id -u diaspora; then
userdel -r diaspora
fi
fi
......
......@@ -22,7 +22,7 @@ case "$1" in
# been purged.
:
# stop the service if running
if [ service diaspora status >/dev/null ]; then
if service diaspora status >/dev/null; then
service diaspora stop
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment