don't do first run if no admin user set
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user