Fix make exiting with an error if $(MOUNT_PT)/var/lib does not exist

This commit is contained in:
Pierre Labastie 2020-09-30 05:43:59 +00:00
parent 088130f04a
commit 5562bf14e0

View file

@ -154,8 +154,9 @@ cat << EOF
\$(CMDSDIR)/`dirname $file`/\$@ >> \$(LOGDIR)/\$@ 2>&1; \\ \$(CMDSDIR)/`dirname $file`/\$@ >> \$(LOGDIR)/\$@ 2>&1; \\
\$(PRT_DU) >>logs/\$@ \$(PRT_DU) >>logs/\$@
@chown \$(LUSER):\$(LGROUP) envars @chown \$(LUSER):\$(LGROUP) envars
@[ -d "\$(MOUNT_PT)/var/lib" ] && \\ @if [ -d "\$(MOUNT_PT)/var/lib" ]; then \\
chown \$(LUSER):\$(LGROUP) \$(MOUNT_PT)/var/lib chown \$(LUSER):\$(LGROUP) \$(MOUNT_PT)/var/lib; \\
fi
@chmod -R a+wt $JHALFSDIR @chmod -R a+wt $JHALFSDIR
@chmod a+wt \$(SRCSDIR) @chmod a+wt \$(SRCSDIR)
EOF EOF