Commit a7b7f34b authored by Anton Midyukov's avatar Anton Midyukov

rescue: do not cleanup locales

1. The default locale is now C.UTF-8 (/root/.i18n) 2. When connecting via ssh, the locale is the one in the system we are connecting from. That's why we need locales.
parent 398dbb40
#!/bin/sh
# cleanup extra locales
CLEANUP_DIRS="/usr/lib/locale /usr/share/locale"
for CLEANUP_DIR in $CLEANUP_DIRS; do
cd "$CLEANUP_DIR"
rm -fr $(ls -1 |sed '/en_US/d' | tr -s '\r\n' ' ')
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment