projects
/
fai-configs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ce83a
)
made gmg 05 rerunable
author
Lisa Marie Maginnis
<lisam@fsf.org>
Sun, 28 Feb 2016 06:19:27 +0000
(
01:19
-0500)
committer
Lisa Marie Maginnis
<lisam@fsf.org>
Sun, 28 Feb 2016 06:19:27 +0000
(
01:19
-0500)
scripts/GMG/05_create_local_user.sh
patch
|
blob
|
blame
|
history
diff --git
a/scripts/GMG/05_create_local_user.sh
b/scripts/GMG/05_create_local_user.sh
index 5c09380b6f0f3713cfa52389427bd3fd38c06351..f7a053ec5ce667c6c2c2a2bc2ce9882ba8000c04 100755
(executable)
--- a/
scripts/GMG/05_create_local_user.sh
+++ b/
scripts/GMG/05_create_local_user.sh
@@
-1,5
+1,7
@@
#!/bin/bash
# Create mediagoblin user & group
-$ROOTCMD useradd -c "GNU MediaGoblin system account" -d /var/lib/mediagoblin -m -r -g www-data mediagoblin
-$ROOTCMD groupadd mediagoblin && sudo usermod --append -G mediagoblin mediagoblin
+if ! $ROOTCMD getent passwd mediagoblin ; then
+ $ROOTCMD useradd -c "GNU MediaGoblin system account" -d /var/lib/mediagoblin -m -r -g www-data mediagoblin
+ $ROOTCMD groupadd mediagoblin && sudo usermod --append -G mediagoblin mediagoblin
+fi