diff options
author | piernov <piernov@piernov.servegame.org> | 2011-07-23 00:25:03 +0200 |
---|---|---|
committer | piernov <piernov@piernov.servegame.org> | 2011-07-23 00:25:03 +0200 |
commit | 457ba45f1f7d291d5881f18786b6a876573a8320 (patch) | |
tree | 0cb3caa3241b510b8a377f683aaa559342424471 /gdm/pre-install | |
download | gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.gz gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.bz2 gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.xz gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.zip |
Création du dépôt
Diffstat (limited to 'gdm/pre-install')
-rwxr-xr-x | gdm/pre-install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdm/pre-install b/gdm/pre-install new file mode 100755 index 0000000..ad04647 --- /dev/null +++ b/gdm/pre-install @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ -z "`grep '^gdm:' /etc/group`" ] +then + /usr/sbin/groupadd -g 42 gdm +fi + +if [ -z "`grep '^gdm:' /etc/passwd`" ] +then + /usr/sbin/useradd -u 42 -g gdm -d /var/gdm -s /bin/false gdm + /bin/passwd -l gdm +fi + +# End of file + |