authentic2.postinst: fix syntax error

This commit is contained in:
Jérôme Schneider 2013-11-25 16:01:40 +01:00
parent cc86392e10
commit df4d646bad
1 changed files with 1 additions and 7 deletions

View File

@ -27,7 +27,7 @@ case "$1" in
$AUTHENTIC_USER
echo "..done" >&2
fi
if [ -f "/etc/$NAME/secret"]; then
if [ -f "/etc/$NAME/secret" ]; then
echo "export SECRET_KEY='`</dev/urandom tr -dc [:alnum:]-_\!\%\^:\; | head -c70`'" > /etc/$NAME/secret
chmod 0600 /etc/$NAME/secret
chown $AUTHENTIC_USER:$AUTHENTIC_GROUP /etc/$NAME/secret
@ -65,10 +65,4 @@ case "$1" in
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0