#!/bin/sh
set -e

if [ "xug_CN UTF-8" != "x$(cat /etc/locale.gen | grep ug_CN)" ]; then
	sed -i '$a ug_CN UTF-8' /etc/locale.gen;
	locale-gen;
fi
