start instance before making mods
This commit is contained in:
@@ -800,12 +800,13 @@ prepare () {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
systemctl start octoprint_default.service
|
||||||
firstrun
|
firstrun
|
||||||
#Set default printer as well?
|
#Set default printer as well?
|
||||||
|
|
||||||
echo 'Starting generic service on port 5000'
|
echo 'Starting generic service on port 5000'
|
||||||
echo -e "\033[0;31mConnect to your template instance and setup the admin user if you have not done so already.\033[0m"
|
echo -e "\033[0;31mConnect to your template instance and setup the admin user if you have not done so already.\033[0m"
|
||||||
systemctl start octoprint_default.service
|
|
||||||
systemctl enable octoprint_default.service
|
systemctl enable octoprint_default.service
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
@@ -836,12 +837,12 @@ firstrun() {
|
|||||||
OCTOPASS=fooselrulz
|
OCTOPASS=fooselrulz
|
||||||
fi
|
fi
|
||||||
echo "Admin password: $OCTOPASS"
|
echo "Admin password: $OCTOPASS"
|
||||||
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin
|
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin | log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if prompt_confirm "Do first run wizards now?"; then
|
if prompt_confirm "Do first run wizards now?"; then
|
||||||
$OCTOEXEC config set server.firstRun false
|
$OCTOEXEC config set server.firstRun false | log
|
||||||
$OCTOEXEC config set server.seenWizards.backup null
|
$OCTOEXEC config set server.seenWizards.backup null | log
|
||||||
if prompt_confirm "Enable online connectivity check?"; then
|
if prompt_confirm "Enable online connectivity check?"; then
|
||||||
$OCTOEXEC config set server.onlineCheck.enabled true
|
$OCTOEXEC config set server.onlineCheck.enabled true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user