UGCC's Re-install Tool

Post Reply
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

UGCC's Re-install Tool

Post by Masher »

A reinstall button will be visible on the server management page if a server was deployed with the auto installer. The reinstall feature allows users to reinstall their game server. Users may reinstall their game server if:
  • The server is not in a disabled state
  • The logged in user is the owner of the server
  • An Installer ID is associated with the server (i.e. the server was deployed with the auto installer)
  • The reinstall feature is not disabled
  • It has been more than 24 hours since the last reinstall was performed
None of these restrictions apply to admins. The Admin Server Management page has its own Reinstall Server button.

For a reinstall the panel will create a new server, using the existing server as a template. It’ll reuse the same ports and other settings from the old server and disable the old server. Once the install is complete the new server’s ID will be changed to the old server’s ID and the new server will get a new random ID. The only setting the panel doesn’t carry over is the root path and command line argument settings.

Note on paths of reinstalled servers
Do note the paths may no longer match the default install location. For example the panel uses <userid>/<serverid> for new servers, a reinstalled server may have a path that doesn’t match it’s ID and that is to be expected.

Disable Re-install Tool feature for users
If you want to prevent users from using the reinstall tool, enter the below text into the SQL tool. This will create an entry in the database disabling reinstalls for users and will require the panel to be restarted.

Code: Select all

INSERT INTO config (config_name,config_value) VALUES ('disablereinstall',1)
To revert and allow reinstalls run the following in SQL tool.

Code: Select all

DELETE FROM config WHERE config_name='disablereinstall'
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Post Reply