Debian packaging QIDIStudio
This commit is contained in:
20
debian/qidistudio-appimage/DEBIAN/postinst
vendored
Executable file
20
debian/qidistudio-appimage/DEBIAN/postinst
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if [ -f /etc/locale.gen ]; then
|
||||
if grep -Eq '^\s*#\s*en_GB\.UTF-8\s+UTF-8\s*$' /etc/locale.gen; then
|
||||
sed -i 's/^\s*#\s*\(en_GB\.UTF-8\s\+UTF-8\s*\)$/\1/' /etc/locale.gen
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v locale-gen >/dev/null 2>&1; then
|
||||
if ! locale -a 2>/dev/null | grep -Eiq '^en_GB\.utf-?8$'; then
|
||||
locale-gen en_GB.UTF-8 || true
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user