don't do first run if no admin user set
This commit is contained in:
@@ -982,37 +982,39 @@ firstrun() {
|
|||||||
echo "Admin password: $OCTOPASS"
|
echo "Admin password: $OCTOPASS"
|
||||||
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin | log
|
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin | log
|
||||||
fi
|
fi
|
||||||
echo
|
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."
|
echo
|
||||||
echo "It is standard to accept these, as no identifying information is exposed through their usage."
|
echo "The script can complete the first run wizards now. For more information on these, see the OctoPrint website."
|
||||||
echo
|
echo "It is standard to accept these, as no identifying information is exposed through their usage."
|
||||||
echo
|
echo
|
||||||
if prompt_confirm "Do first run wizards now?"; then
|
echo
|
||||||
$OCTOEXEC config set server.firstRun false --bool | log
|
if prompt_confirm "Do first run wizards now?"; then
|
||||||
$OCTOEXEC config set server.seenWizards.backup null | log
|
$OCTOEXEC config set server.firstRun false --bool | log
|
||||||
$OCTOEXEC config set server.seenWizards.corewizard 4 --int | log
|
$OCTOEXEC config set server.seenWizards.backup null | log
|
||||||
|
$OCTOEXEC config set server.seenWizards.corewizard 4 --int | log
|
||||||
|
|
||||||
if prompt_confirm "Enable online connectivity check?"; then
|
if prompt_confirm "Enable online connectivity check?"; then
|
||||||
$OCTOEXEC config set server.onlineCheck.enabled true --bool
|
$OCTOEXEC config set server.onlineCheck.enabled true --bool
|
||||||
else
|
else
|
||||||
$OCTOEXEC config set server.onlineCheck.enabled false --bool
|
$OCTOEXEC config set server.onlineCheck.enabled false --bool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if prompt_confirm "Enable plugin blacklisting?"; then
|
if prompt_confirm "Enable plugin blacklisting?"; then
|
||||||
$OCTOEXEC config set server.pluginBlacklist.enabled true --bool
|
$OCTOEXEC config set server.pluginBlacklist.enabled true --bool
|
||||||
else
|
else
|
||||||
$OCTOEXEC config set server.pluginBlacklist.enabled false --bool
|
$OCTOEXEC config set server.pluginBlacklist.enabled false --bool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if prompt_confirm "Enable anonymous usage tracking?"; then
|
if prompt_confirm "Enable anonymous usage tracking?"; then
|
||||||
$OCTOEXEC config set plugins.tracking.enabled true --bool
|
$OCTOEXEC config set plugins.tracking.enabled true --bool
|
||||||
else
|
else
|
||||||
$OCTOEXEC config set plugins.tracking.enabled false --bool
|
$OCTOEXEC config set plugins.tracking.enabled false --bool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if prompt_confirm "Use default printer (can be changed later)?"; then
|
if prompt_confirm "Use default printer (can be changed later)?"; then
|
||||||
$OCTOEXEC config set printerProfiles.default _default
|
$OCTOEXEC config set printerProfiles.default _default
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user