fractionnement du script install_sys.sh en plusieur petit script
This commit is contained in:
10
sysconfig.sh
Normal file
10
sysconfig.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# configuration du système
|
||||
echo "Europe/Paris" > $CHROOT/etc/timezone
|
||||
cp /etc/resolv.conf $CHROOT/etc/resolv.conf
|
||||
echo "fr_FR.UTF-8 UTF-8" >> $CHROOT/etc/locale.gen
|
||||
chroot $CHROOT /bin/bash -c "locale-gen"
|
||||
echo 'LANG="fr_FR.UTF-8"' > $CHROOT/etc/env.d/02locale
|
||||
echo 'LC_COLLATE="C"' >> $CHROOT/etc/env.d/02locale
|
||||
chroot $CHROOT /bin/bash -c "useradd -p \`openssl passwd -1 password\` -G wheel joe"
|
||||
sed -i 's/keymap="us"/keymap="fr"/g' $CHROOT/etc/conf.d/keymaps
|
Reference in New Issue
Block a user