Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket3492 update upgrade script #32

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

LiamPanchaud
Copy link

Updated script to:

  • install and configure git
  • install Java
  • install Nport admin if it isn't already installed
  • autostart from user area

It also no longer asks the user to update web dashboard

@@ -43,6 +45,9 @@
SOURCE_MACHINE_SETTINGS_CONFIG_PATH = os.path.join(SOURCE_FOLDER, SETTINGS_CONFIG_FOLDER, "NDXOTHER")
SOURCE_MACHINE_SETTINGS_COMMON_PATH = os.path.join(SOURCE_FOLDER, SETTINGS_CONFIG_FOLDER, "common")

THIRD_PARTY_INSTALLERS_REL_DIR = "..\\..\\third_party_installers"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use os.path.join

"""
Reminds the user to copy the third party installs from the share
"""
print("This is a new feature. If you find problems, add them to #3492, or open a new one and reference #3492")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this line is needed (if bugs are found, we'll find the appropriate ticket anyway)

for installer in installers:
if "Git" in installer:
RunProcess(working_dir=THIRD_PARTY_LATEST, executable_file=installer, prog_args=GIT_INSTALL_ARGS).run()
# TODO update git config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely this is just a call to git_configs() which you've defined below?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I forgot to remove the TODO comment

…it being re-installed half way through it's session
@Tom-Willemsen
Copy link
Contributor

There is a problem with re-installing git from within python - gitpython doesn't like the executable changing under it. I attempted to fix it in the latest commit but there is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants