restapi.secret should only come with the judgehost

This avoids packaging conflicts
Fix error in postinst script