summaryrefslogtreecommitdiffstats
path: root/gen-data/tasks/templates/locale-change.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen-data/tasks/templates/locale-change.sh')
-rw-r--r--gen-data/tasks/templates/locale-change.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/gen-data/tasks/templates/locale-change.sh b/gen-data/tasks/templates/locale-change.sh
new file mode 100644
index 0000000..8f7964f
--- /dev/null
+++ b/gen-data/tasks/templates/locale-change.sh
@@ -0,0 +1,16 @@
+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
+}