hooks: disable USE_DPKG to allow localepurge to run, re-enable it afterwards
fix formatting of debug messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user