hook_start() { export CHECK_LOCALE=0 ___old_locale="$(cat /etc/locale.conf)" echo "$___new_locale" > /etc/locale.conf } hook_end() { echo "$___old_locale" > /etc/locale.conf } run() { create_pagila }