Default user on generic images
This commit is contained in:
parent
e43611da50
commit
6351c14a95
|
@ -8127,6 +8127,16 @@ function email_client {
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.muttrc
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.muttrc
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.mutt-alias
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.mutt-alias
|
||||||
|
|
||||||
|
# default user on generic images
|
||||||
|
if [ -d /home/${GENERIC_IMAGE_USERNAME} ]; then
|
||||||
|
cp -f /etc/Muttrc /home/${GENERIC_IMAGE_USERNAME}/.muttrc
|
||||||
|
chown ${GENERIC_IMAGE_USERNAME}:${GENERIC_IMAGE_USERNAME} /home/${GENERIC_IMAGE_USERNAME}/.muttrc
|
||||||
|
touch /home/${GENERIC_IMAGE_USERNAME}/.mutt-alias
|
||||||
|
chown ${GENERIC_IMAGE_USERNAME}:${GENERIC_IMAGE_USERNAME} /home/${GENERIC_IMAGE_USERNAME}/.mutt-alias
|
||||||
|
cp /etc/skel/.emacs-mutt /home/${GENERIC_IMAGE_USERNAME}/.emacs-mutt
|
||||||
|
chown ${GENERIC_IMAGE_USERNAME}:${GENERIC_IMAGE_USERNAME} /home/${GENERIC_IMAGE_USERNAME}/.emacs-mutt
|
||||||
|
fi
|
||||||
|
|
||||||
echo 'email_client' >> $COMPLETION_FILE
|
echo 'email_client' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue