don't do first run if no admin user set

This commit is contained in:
paukstelis
2023-01-02 09:25:28 -05:00
parent b1aefac8fe
commit fe0a13f9fe

View File

@@ -982,6 +982,7 @@ firstrun() {
echo "Admin password: $OCTOPASS"
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin | log
fi
if [ -n "$OCTOADMIN" ]; then
echo
echo
echo "The script can complete the first run wizards now. For more information on these, see the OctoPrint website."
@@ -1015,6 +1016,7 @@ firstrun() {
$OCTOEXEC config set printerProfiles.default _default
fi
fi
fi
}