Skip to content

Commit

Permalink
Use build script to create user at cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat5TV committed Aug 23, 2018
1 parent 3c8ff76 commit 98100fe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nems-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ else
# Check if nemsadmin exists, and create it if not
if [ ! -d /home/nemsadmin ]; then
# Create the nemsadmin user
adduser --disabled-password --gecos "" nemsadmin
/root/nems/nems-admin/build/030-user
fi

# Configure nemsadmin user as default admin
# Allow user to become super-user
usermod -aG sudo nemsadmin
# Set the user password
echo -e "nemsadmin\nnemsadmin" | passwd nemsadmin >/tmp/init 2>&1

# Reset the RPi-Monitor users
cp /root/nems/nems-migrator/data/rpimonitor/daemon.conf /etc/rpimonitor

Expand Down

0 comments on commit 98100fe

Please sign in to comment.