Further fix user creation (or no)

This commit is contained in:
Pierre Labastie 2020-04-02 11:54:50 +00:00
parent dd7e0f6793
commit 49e2745200

View file

@ -627,7 +627,7 @@ create-sbu_du-report: mk_BOOT
save-luser: save-luser:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@LUSER_ID=\$(grep '^\$(LUSER):' /etc/passwd | cut -d: -f3); \\ @LUSER_ID=\$\$(grep '^\$(LUSER):' /etc/passwd | cut -d: -f3); \\
if [ -n "\$\$LUSER_ID" ]; then \\ if [ -n "\$\$LUSER_ID" ]; then \\
if [ ! -d \$(LUSER_HOME).XXX ]; then \\ if [ ! -d \$(LUSER_HOME).XXX ]; then \\
mv \$(LUSER_HOME){,.XXX}; \\ mv \$(LUSER_HOME){,.XXX}; \\
@ -637,7 +637,7 @@ save-luser:
echo "\$\$LUSER_ID" > luser-id; \\ echo "\$\$LUSER_ID" > luser-id; \\
echo User \$(LUSER) exists with ID \$\$LUSER_ID; \\ echo User \$(LUSER) exists with ID \$\$LUSER_ID; \\
else \\ else \\
rm luser-id; \\ rm -f luser-id; \\
echo User \$(LUSER) does not exist; \\ echo User \$(LUSER) does not exist; \\
echo It will be created with book instructions.; \\ echo It will be created with book instructions.; \\
fi fi