neutrinet_cube_install merge requestshttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests2019-11-02T12:01:15Zhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/4Improve user experience2019-11-02T12:01:15ZHgOImprove user experience- Create logger functions (info, warn, error)
- Create `prompt` function that loops for user input and handles errors
- Create `prompt_pwd` function that hides password and checks mismatch
- Add a loop while waiting sudo password
- H...- Create logger functions (info, warn, error)
- Create `prompt` function that loops for user input and handles errors
- Create `prompt_pwd` function that hides password and checks mismatch
- Add a loop while waiting sudo password
- Handle any special characters in user inputs
This merge request is also merging changes from !1 and !3
Fixes #3 and #4 IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/1Add more structure to the script2019-11-02T12:01:15ZIljaAdd more structure to the script* Put CONFIG at top of the script with all the variables
* Add loglevel
* Add print functions for debug, info, warning and error* Put CONFIG at top of the script with all the variables
* Add loglevel
* Add print functions for debug, info, warning and errorhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/5Resolve "saving entries if the script stops ?"2019-11-04T08:57:57ZHgOResolve "saving entries if the script stops ?"Closes #2 and #5 Closes #2 and #5 IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/7Change cube build script repo and revision2019-11-18T18:10:13ZHgOChange cube build script repo and revisionSince [my PR has been merged](https://github.com/labriqueinternet/build.labriqueinter.net/pull/65), we can now use back the official repository.Since [my PR has been merged](https://github.com/labriqueinternet/build.labriqueinter.net/pull/65), we can now use back the official repository.IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/9add .gitignore file2019-11-19T17:31:17Zsohkaadd .gitignore fileHi,
It is quite easy to add and commit unwanted files/dirs like `cube_resources` and `install.hypercube`. In case someone pushes his `install.hypercube` file, it would publicly expose his passwords and VPN certificates.
With this gitig...Hi,
It is quite easy to add and commit unwanted files/dirs like `cube_resources` and `install.hypercube`. In case someone pushes his `install.hypercube` file, it would publicly expose his passwords and VPN certificates.
With this gitignore conf, it will be a bit harder to make this kind of mistake.https://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/10remove check integrity of yunocube.sh script2019-11-20T18:26:14Zsohkaremove check integrity of yunocube.sh scriptCloses #8 and remove unnecessary blank spacesCloses #8 and remove unnecessary blank spaceshttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/8bump build.labriqueinter.net git revision to last one2019-11-20T18:33:11Zsohkabump build.labriqueinter.net git revision to last oneHi,
This is just a little merge request to update the build.labriqueinter.net commit revision.
[Here are the changes](https://github.com/labriqueinternet/build.labriqueinter.net/commit/b755e06f96e4612a1c247601ea12900f1e34e767) containe...Hi,
This is just a little merge request to update the build.labriqueinter.net commit revision.
[Here are the changes](https://github.com/labriqueinternet/build.labriqueinter.net/commit/b755e06f96e4612a1c247601ea12900f1e34e767) contained in this new commit.https://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/6Add depedency check2019-11-20T19:38:45ZIljaAdd depedency checkThere's a list of dependencies. People have to install themselves because we don't know what package manager they use. After continuing it'll first check the dependencies again.There's a list of dependencies. People have to install themselves because we don't know what package manager they use. After continuing it'll first check the dependencies again.HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/11change install-sd.sh location for official git repository2019-11-29T08:21:23Zsohkachange install-sd.sh location for official git repositoryWith these changes, instead of downloading the `install-sd.sh` script from https://repo.labriqueinter.net/, the `neutrinet_cube_install.sh` downloads it from [the official git repository](https://github.com/labriqueinternet/labriqueinter...With these changes, instead of downloading the `install-sd.sh` script from https://repo.labriqueinter.net/, the `neutrinet_cube_install.sh` downloads it from [the official git repository](https://github.com/labriqueinternet/labriqueinter.net).
The first advantage is that it allows us to control which version of the `install-sd.sh` script we use to flash the SD card (the same way the script downloads a specific version of the `hypercube.sh` script). Secondly, since it apparently takes quite some time for the updates applied in the git repository to reach https://repo.labriqueinter.net/ (I suppose the maintainers manually update the website), we wouldn't ever suffer from these delays (well, it's hypothetical since there isn't that much commits in the git repository).
The downside is that there is no more additional file integrity check (because the git repo doesn't provide a hash). I hesitated to `git clone` the full repository to get the `install-sd.sh` file, but, as the repository is quite big (64Mio), it is kind of a waste for only one little script.https://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/12Resolve "Import or download VPN certificates"2019-12-07T17:01:56ZHgOResolve "Import or download VPN certificates"Closes #7
Add an option to import certificates from a given directory.Closes #7
Add an option to import certificates from a given directory.IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/14Resolve "Check GPG signatures of Yunohost images"2019-12-07T17:59:27ZHgOResolve "Check GPG signatures of Yunohost images"Closes #6Closes #6IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/17Execute custom script2019-12-14T14:56:22ZsohkaExecute custom scriptCloses #9 and #12 Closes #9 and #12 https://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/13Fix #11 Adding unstable branch2019-12-15T14:53:36ZIljaFix #11 Adding unstable branch* Added a "Contributing" section with
* Link to issue tracker
* Link to repo for MR's
* That MR's should be done to unstable branch* Added a "Contributing" section with
* Link to issue tracker
* Link to repo for MR's
* That MR's should be done to unstable branchHgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/19Pass verbose parameter to install-sd.sh script2020-01-18T08:51:18ZHgOPass verbose parameter to install-sd.sh scriptCloses #15Closes #15https://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/18Ask the user if they want to import VPN certificates2020-01-18T08:51:18ZHgOAsk the user if they want to import VPN certificatesCloses #14Closes #14IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/15Resolve "Optionally clean up the cube_resources and install.hypercube"2020-01-18T08:51:18ZHgOResolve "Optionally clean up the cube_resources and install.hypercube"Closes #13Closes #13IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/20Improve sentence about keeping install.hypercube2020-01-18T08:51:18ZHgOImprove sentence about keeping install.hypercubeCloses #13
I did two things:
- Actually removing the `install.hypercube` file :sweat_smile:
- Improving the sentence about keeping this file
I didn't change the sentence in a positive way ("Do you want to keep this file ? (y)" when th...Closes #13
I did two things:
- Actually removing the `install.hypercube` file :sweat_smile:
- Improving the sentence about keeping this file
I didn't change the sentence in a positive way ("Do you want to keep this file ? (y)" when the script failed, and "Do you want to remove this file? (y)", when the script succeed), because I have the feeling it might confuse the reader (sometimes we skip words when reading, and the reader might think it was the same sentence as before, while it was the exact opposite)IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/16Resolve "Add translations"2020-01-18T08:51:18ZHgOResolve "Add translations"Closes #10
I didn't manage to let the user manually define its language through an option. On the other hand, it's possible to manually define the language with `LANGUAGE=fr ./neutrinet_cube_install.sh`.Closes #10
I didn't manage to let the user manually define its language through an option. On the other hand, it's possible to manually define the language with `LANGUAGE=fr ./neutrinet_cube_install.sh`.IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/21Improve the README.md2020-01-18T08:57:58ZIljaImprove the README.mdAdded
* What the script does (including what info is asked)
* How to download the script
* Change the structure a bit
Closes #16Added
* What the script does (including what info is asked)
* How to download the script
* Change the structure a bit
Closes #16IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_cube_install/-/merge_requests/22Release changes for install party 19/01/20202020-01-19T11:59:07ZHgORelease changes for install party 19/01/2020Closes #18
# Release notes
* Pass verbose parameter to install-sd.sh script (!19, closes #15)
* Optionally import VPN certificates instead of copy/paste (!18, closes #14)
* Optionally clean up the cube_resources and install.hype...Closes #18
# Release notes
* Pass verbose parameter to install-sd.sh script (!19, closes #15)
* Optionally import VPN certificates instead of copy/paste (!18, closes #14)
* Optionally clean up the cube_resources and install.hypercube (!15 and !20, closes #13)
* Add French translations (!16, closes #10)
* Improve documentation (!21, closes #16)
# Testing
* [x] Check that the import of VPN certificates actually works (try with copy/paste, then with the import feature, and verify that both hypercube.install files are the same)
* [x] Check that resources are removed after cleanup (cube_resources and install.hypercube should be removed)
* [x] Check French translation and check if LANGUAGE parameter actually switches language
* [x] Check the `-v` option: it should toggle debug mode for install-sd.sh script as well
* [x] Check that the install succeed ^^