Difference between revisions of "Updating the Webui"

From MineOS
Jump to: navigation, search
(Resetting scripts)
(Convenience scripts)
 
Line 3: Line 3:
 
== Convenience scripts ==
 
== Convenience scripts ==
  
If you updated your scripts since May 11, 2016, you can use the newly-created convenience scripts for updating and resetting instead. (only use one)
+
You can use the newly-created convenience scripts for updating and resetting instead. (only use one)
  
 
{{executeasroot
 
{{executeasroot
Line 10: Line 10:
  
 
/bin/bash update_webui.sh
 
/bin/bash update_webui.sh
 +
 +
OR
 +
 
/bin/bash reset_webui.sh
 
/bin/bash reset_webui.sh
 
}}
 
}}

Latest revision as of 21:19, 19 January 2019

The most current web user interface updates via git. Successfully updating the web-ui requires you to log in as root, via your server console or a SSH (PuTTy) session.

Convenience scripts

You can use the newly-created convenience scripts for updating and resetting instead. (only use one)

Updating scripts

Following these commands will update your nodejs webui the most recent version and maintain changes (if any) you have made to the source. This is the preferred method, even if you do not edit code. After updating the scripts, be sure to restart the webui service (see your installation page for details).

Resetting scripts

If updating the scripts returns an error or otherwise fails to solve a web-ui problem, you can try resetting the scripts. This will discard any and all local changes to the source and ensure permissions are set properly.

The git reset command will let you know what commit the web-ui will be using:

root@core games/minecraft# git reset --hard origin/master
HEAD is now at 1ef67f8 added 'delete server' functionality to server