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

Less duplicate code for convert script #116

Merged
merged 3 commits into from
Oct 6, 2023
Merged

Conversation

enoch85
Copy link
Contributor

@enoch85 enoch85 commented Oct 5, 2023

cc @dinger1986 @rustdesk

Something like this would work. I'm not sure if the "Migration" should happen before or after the new installation though?

@dinger1986
Copy link
Contributor

dinger1986 commented Oct 5, 2023

Yeah! that looks great, copying the keys in place before makes most sense so when the services start they are already there


# We need to create the new install dir before the migration task, otherwise mv will fail
mkdir -p "$RUSTDESK_INSTALL_DIR"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to self: cp -f will overwrite existing files which makes it possible to run this after the installation.

That also means that /opt/rustdesk doesn't have to be removed until after a successful installation.

@rustdesk rustdesk merged commit add84d6 into rustdesk:main Oct 6, 2023
2 checks passed
@rustdesk
Copy link
Owner

rustdesk commented Oct 6, 2023

BTW, https://github.com/rustdesk/rustdesk-server-pro/blob/main/restore.sh has the same problem.

@enoch85 enoch85 deleted the patch-2 branch October 6, 2023 05:18
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.

3 participants