Fixed ubuntu template

The ubuntu template was not writing the hook changes to the config
file...