neutrinet_ynh merge requestshttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests2020-02-29T11:21:54Zhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/23Use yunohost progress bar2020-02-29T11:21:54ZHgOUse yunohost progress barCloses #10
Things to be tested:
* [x] Install
* [x] Upgrade
* [x] Backup
* [x] Delete
* [x] Restore
In the upgrade script, I kept some `ynh_print_info` as they were in a condition, and I don't know if the progress bar would h...Closes #10
Things to be tested:
* [x] Install
* [x] Upgrade
* [x] Backup
* [x] Delete
* [x] Restore
In the upgrade script, I kept some `ynh_print_info` as they were in a condition, and I don't know if the progress bar would have worked.Neutrinet v0.3.0~ynh5https://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/6Upgrade upgrade script2019-11-04T09:00:22ZHgOUpgrade upgrade scriptFixes #5 and #4 Fixes #5 and #4 IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/3Upgrade to 0.2.22017-12-11T18:16:14ZHgOUpgrade to 0.2.2*Created by: tbalthazar*
What this upgrade does:
- `git pull` the latest version of `renew_cert` (to use the `--cron` flag)
- renew the certificate
- add a daily cron job that will check if the certificate must be
renewed
The `...*Created by: tbalthazar*
What this upgrade does:
- `git pull` the latest version of `renew_cert` (to use the `--cron` flag)
- renew the certificate
- add a daily cron job that will check if the certificate must be
renewed
The `renew_from_cube` script only renew the cert if it will [expire in less than 4
months](https://github.com/Neutrinet/renew_cert/blob/master/renew_from_cube.py#L29) (thanks to the `--cron` arg).https://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/1Update to 0.2.1 and renew cert2019-10-29T16:33:16ZHgOUpdate to 0.2.1 and renew cert*Created by: tbalthazar*
@Psycojoker could you please check if that naive modification would do the trick for now? (we would probably try to add a cron tab in another update)*Created by: tbalthazar*
@Psycojoker could you please check if that naive modification would do the trick for now? (we would probably try to add a cron tab in another update)https://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/42Simplify cron script and check ca server certificate expiration date2023-09-29T16:15:38ZHgOSimplify cron script and check ca server certificate expiration dateCloses #29Closes #29HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/35Resolve "Suppress warnings when cloning the renew-cert repo"2022-04-09T14:35:42ZHgOResolve "Suppress warnings when cloning the renew-cert repo"Closes #30Closes #30HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/38Resolve "super-old deprecated packaging practices ?"2022-04-10T14:29:44ZHgOResolve "super-old deprecated packaging practices ?"Closes #27Closes #27HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/14Resolve "Renew cert cron sends a mail every night"2019-12-14T13:05:09ZHgOResolve "Renew cert cron sends a mail every night"Closes #9Closes #9IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/21Resolve "Move master -> stable and develop -> unstable"2020-02-29T11:21:54ZHgOResolve "Move master -> stable and develop -> unstable"Closes #16Closes #16Neutrinet v0.3.0~ynh5https://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/20Resolve "Improve /neutrinet webpage"2020-02-29T11:21:54ZIljaResolve "Improve /neutrinet webpage"Closes #13
I did:
Remove Javascript
* Removed the ./sources/static/js folder and content
* Removed the `<script>` tags (loading the Javascript) from the ./sources/index.html file
Change links to underline instead of bold
* C...Closes #13
I did:
Remove Javascript
* Removed the ./sources/static/js folder and content
* Removed the `<script>` tags (loading the Javascript) from the ./sources/index.html file
Change links to underline instead of bold
* Changed the a in the ./sources/static/css/styled.css to have underline instead of bold
Add Dutch translation
* I added links on the top right of the page for the different languages (Dutch and French)
* I added an index_nl.html and index_fr.html (and removed index.html)
* The Dutch and French pages can be found on <path>/nl and <path>/fr respectively
* This setup makes it so that nginx can choose the default language
* Nginx (302) redirects <path>/ to <path>/fr which means that French is always default
Checking if the scripts need change
* The only one that needed change was the update script. It already copied the files (overwriting where needed), but that meant that the folders/files I removed are still there. I 'fixed' it by removing the whole webapp folder first and then recreate it. Another option would be to check if the file/folder still exist and remove them one by one, but this seemed easier and more general.
Add links
* Added the git repo and the repo for this app to the list of links
* I also checked if all the links still work, they still work
I just did the HTML and CSS as good as I could so it would work, if I did things that are considered 'bad practice', plz let me know so I can fix it.HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/40Resolve "Git detected dubious ownership in repository"2023-03-15T07:53:41ZHgOResolve "Git detected dubious ownership in repository"Closes #32Closes #32HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/36Resolve "Change url in manifest to upstream url"2022-04-09T14:39:34ZHgOResolve "Change url in manifest to upstream url"Closes #31Closes #31HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/33Resolve "Add Yunohost pipeline status icons in the ReadMe"2020-12-12T17:20:16ZHgOResolve "Add Yunohost pipeline status icons in the ReadMe"Closes #25Closes #25Neutrinet v0.3.1~ynh3HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/11Removing a folder with the -r option is more effecient2019-12-07T18:22:20ZHgORemoving a folder with the -r option is more effecient^^'^^'https://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/19Remove virtualenv from documentation2019-12-14T14:41:10ZHgORemove virtualenv from documentationIljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/10Remove old python2 virtualenv2019-12-07T18:19:21ZHgORemove old python2 virtualenvCloses #8Closes #8IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/28Remove folders before reloading nginx2020-04-11T14:20:43ZHgORemove folders before reloading nginxCloses #17Closes #17HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/41Release version 0.3.1~ynh52023-03-15T08:06:20ZHgORelease version 0.3.1~ynh5HgOHgOhttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/18Release v0.3.0~ynh42019-12-14T13:33:36ZHgORelease v0.3.0~ynh4Closes #9 #11 #12
I managed to test this on my cubes :)
For !17, I could reproduce the issue by deleting the `path` setting and generating the SSO configuration again:
```shell
sudo yunohost app setting neutrinet path -d
sudo y...Closes #9 #11 #12
I managed to test this on my cubes :)
For !17, I could reproduce the issue by deleting the `path` setting and generating the SSO configuration again:
```shell
sudo yunohost app setting neutrinet path -d
sudo yunohost app ssowatconf
```
# Testing
I configured a dev package list, it's temporarily at https://neutrinet.be/apps.dev.json
```shell
sudo yunohost app removelist neutrinet
sudo yunohost app fetchlist -n neutrinet -u https://neutrinet.be/apps.dev.json
sudo yunohost tools update --apps
sudo yunohost tools upgrade --apps neutrinet --debug
```
You should check the following:
- `<your-domain>/neutrinet/` should display the Neutrinet contact details
- `yunohost app map | grep -i neutrinet` should display `<your-domain>/neutrinet: Neutrinet`
- `/etc/cron.daily/neutrinet-renew-cert` should execute normally, and without any output when the certificates doesn't need to be renewed.
If you have access to your cube from the local network, you can test the certificates renewal:
```shell
sudo mv /etc/openvpn/keys/user.crt{,.old}
sudo mv /etc/openvpn/keys/user.key{,.old}
sudo mv /etc/openvpn/keys/ca-server.crt{,.old}
/etc/cron.daily/neutrinet-renew-cert
```
After 10min or so, the cron script should produce logs about renewing the certificates.
Execute `ip a` to check if `tun0` interface is up
# Release notes
## Bug fixes
- Fix empty webpath (!17), which caused Yunohost to think the Neutrinet app was at the domain's root. Other apps couldn't be installed on that domain, and the nginx's welcome page was displayed.
- Fix 404 error on `/neutrinet` endpoint (!15)
- Fix missing pip binary when creating virtualenv on some systems (!16). We now use debian packages instead of a virtualenv.
- Fix cron task sending a mail every night (!14). The task was too verbose and was sending a mail for each run. We now send a mail only when the certificates are being renewed.IljaIljahttps://gitlab.domainepublic.net/Neutrinet/neutrinet_ynh/-/merge_requests/7Release v0.3.02019-11-23T20:58:46ZHgORelease v0.3.0Closes #5Closes #5IljaIlja