Polish up framework to auto-detect Mustang

This commit is contained in:
hirsch 2016-07-31 19:17:30 -04:00
parent 32b6bdde02
commit 45feec3d78
4 changed files with 53 additions and 48 deletions

View file

@ -9,9 +9,10 @@ if [ ! -f "mustang_midi" ]; then
exit 1
fi
echo "Create non-privileged user for MIDI bridge"
useradd -M -s /bin/false mustang-user
if ! `grep -q mustang-user /etc/passwd`; then
echo "Create non-privileged user for MIDI bridge"
useradd -M -s /bin/false mustang-user
fi
echo "Copy program and support scripts to $BINDIR"