-
Notifications
You must be signed in to change notification settings - Fork 72
-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Linux] Make INSTALL_ROOT_SYSTEMWIDE configurable #300
Comments
Hello ONL. Example Would this do the trick for flatpak? |
The argument --systemwide-directory has been added, for systemwide installations, to choose an installation directory other than the default /opt. Use -h or --help to get the proper syntax. Updated some email addresses too.
Committed e1ffdb6 on that matter. Usage Example for 64bit distros Note 1 Note 2 Note 3 Edit01: add note on '--' strange syntax. |
The automated build succeeds, going to test the generated flatpak on thursday but I don't expect any issues. Thank you @KonstantinosSykas for the quick addition, this should be a major step to produce a flatpak, that would be accepted by flathub (it you guys are interested in having Oolite listed there). My fallback was to use rsync (just like the updater) to populate /app, but that required building rsync from source inside flatpak-builder. Update: Jul-05-2018 |
The flathub opportunity is interesting indeed. However, let's lay low for the time being. I will take it to the boards on the relevant thread you have opened (http://aegidian.org/bb/viewtopic.php?f=9&t=19746). Concerning the installer enhancement, it was a quick fix, as clean as possible, but there are still some things to consider. I am still working on the following issue that the current fix presents. How to replicate the issue:
at this point you have an orphan installation in
I am working on handling this by making uninstall aware of an orphan installation. |
Question is, whether you want to allow arbitrary locations for installation. The "old" method of installing to /opt works fine, except for special use cases like flatpak Another option would be to place an uninstall-wrapper in |
Many thanks for the feedback @ONL ! 😎 Is the |
Yes, |
to handle the case where another systemwide installation is deployed to a different directory than the one that we are trying to install/uninstall.
Orphan installations handled with commit 6174e69. |
This is just to summarize the solution given, before closing the case. The command line parameter Usage Example Syntax help Example Important Note Edited 12-Jul-2018 15:30 (UTC): Added syntax help example. |
The install script defines several environment variables, some of which are configurable by the user, like UNATTENDED_INSTALLATION
However, the install script in oolite/installers/posix/setup.body defines INSTALL_ROOT_SYSTEMWIDE="/opt"
It would be nice, if this was customizable, like
if [ ! ${INSTALL_ROOT_SYSTEMWIDE} ]
then
INSTALL_ROOT_SYSTEMWIDE="/opt"
fi
to allow overriding the directory for a system wide installation. This would facilitate packaging the app as a flatpak, because it could directly be installed to /app
The text was updated successfully, but these errors were encountered: