Skip to content
Permalink
Browse files

Force nems-upgrade at cleanup.

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 10, 2019
1 parent 9dda291 commit ce7988ceb01a0f975d69685174ed85e199e290dd
Showing with 5 additions and 2 deletions.
  1. +5 −2 nems-cleanup.sh
@@ -40,13 +40,16 @@ else
/root/nems/nems-admin/build/030-user
fi

# Ensure all upgrades have been performed
/usr/local/bin/nems-upgrade

if (( $platform >= 0 )) && (( $platform <= 9 )); then
# Reset the RPi-Monitor users
cp /root/nems/nems-migrator/data/rpimonitor/daemon.conf /etc/rpimonitor
cp -f /root/nems/nems-migrator/data/rpimonitor/daemon.conf /etc/rpimonitor/
fi

# Reset Samba users
cp /root/nems/nems-migrator/data/samba/smb.conf /etc/samba
cp -f /root/nems/nems-migrator/data/samba/smb.conf /etc/samba/

usercount=$(find /home/* -maxdepth 0 -type d | wc -l)
if (( $usercount == 1)); then

0 comments on commit ce7988c

Please sign in to comment.
You can’t perform that action at this time.