From 4347a31b0eccabca4843045b4291a51bc452c784 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Sun, 28 Feb 2016 01:19:27 -0500 Subject: [PATCH] made gmg 05 rerunable --- scripts/GMG/05_create_local_user.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/GMG/05_create_local_user.sh b/scripts/GMG/05_create_local_user.sh index 5c09380..f7a053e 100755 --- 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 -- 2.25.1