move application setup to rake task that is invoked while debian postinst