hooks: disable USE_DPKG to allow localepurge to run, re-enable it afterwards

fix formatting of debug messages
This commit is contained in:
nodiscc
2020-04-13 16:17:22 +02:00
parent de4a62ed7f
commit b52163058d
6 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,10 @@
#!/bin/bash
echo "running [$0]"
echo "I: running $0"
locale-gen --keep-existing
# USE_DPKG must be disabled in localepurge configuration before running manually, else it will do nothing
sed -i 's/^USE_DPKG/#USE_DPKG/' /etc/locale.nopurge
localepurge
# re-enable USE_DPKG
sed -i 's/^#USE_DPKG/USE_DPKG/' /etc/locale.nopurge