[scripts] uniform ". /etc/profile" usage

This commit is contained in:
Fabio Erculiani
2012-09-16 20:12:27 +02:00
parent 9026228337
commit 96b9416504
9 changed files with 24 additions and 10 deletions
+3 -3
View File
@@ -1,5 +1,8 @@
#!/bin/bash
/usr/sbin/env-update
. /etc/profile
# create /proc if it doesn't exist
# rsync doesn't copy it
if [ ! -d "/proc" ]; then
@@ -19,9 +22,6 @@ rm -rf /root
cp /etc/skel /root -Rap
chown root:root /root -R
/usr/sbin/env-update
. /etc/profile
# Setup locale to en_US
echo LANG=\"en_US.UTF-8\" > /etc/env.d/02locale
echo LANGUAGE=\"en_US.UTF-8\" >> /etc/env.d/02locale