mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
postscript.sh: do not add admin to passwd more than once
This commit is contained in:
parent
f67bf5076e
commit
a7056fef64
@ -48,5 +48,7 @@ if [ -r ${BOARD_DIR}/os.conf ]; then
|
||||
fi
|
||||
|
||||
# add admin user alias
|
||||
echo "admin:x:0:0:root:/root:/bin/sh" >> ${TARGET}/etc/passwd
|
||||
if ! grep -E '^admin:' ${TARGET}/etc/passwd &> /dev/null; then
|
||||
echo "admin:x:0:0:root:/root:/bin/sh" >> ${TARGET}/etc/passwd
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user