1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00
Commit graph

49 commits

Author SHA1 Message Date
ec6f832827 Packaging v2 2024-02-21 15:08:58 +01:00
Moul
d0ec6502f2 [mod] #100: Define clearly ports variable names
Check ports are available locally
2024-02-21 15:08:58 +01:00
Moul
229636f7fc [mod] Move Duniter configuration in _common.sh
In order to maintain these lines once
to avoir repetitive code
Improve progress message/comments
2022-05-06 09:04:49 +02:00
Moul
ac91efc755 [fix] Create 'duniter' user with --home-dir as \$datadir
as well with shell in order to be able to run duniter with systemd

So, the configuration get saved in (/home/yunohost.app/duniter) $datadir
with which the service will run with

The consequence of this was at least a broken BMA access due to the
absense of configuration

Run Duniter with 'duniter' user to apply the configuration
to get the config file with correct permissions, using
"ynh_exec_as duniter", an equivalent of su - duniter -c "$cmd"
2022-05-02 20:01:52 +02:00
Moul
ac485a5388 [fix] Add upgrade support datadir move
Upgrade from the state before the refactoring
from 1.8.1~ynh0 to 1.8.2~ynh1

Move Duniter home directory to the YunoHost App path

Check if the destination exists, meaning it’s not running < 1.8.1~ynh1
then run the datadir move

Package_check: Add upgrade check from commit before the refactoring
2022-05-02 20:01:52 +02:00
Moul
71f08a3535 [mod] Remove functions.sh now useless
Remove execution permission on scripts
2022-05-02 20:01:52 +02:00
Moul
004def4246 [mod] Precise progression message
Change '...' to '…'
2022-05-02 20:01:52 +02:00
Moul
3d858c73ae [fix] #96: Add back ARM support 2022-04-05 18:43:35 +02:00
yalh76
6e2306c3ab Fix missing variables 2022-03-13 22:46:09 +01:00
yalh76
de9175e1f9 Apply last example_ynh 2022-03-12 16:55:59 +01:00
ericgaspar
439659d1c8
update 2021-11-25 19:38:26 +01:00
Éric Gaspar
040231e1eb
Merge branch 'testing' into patch-4 2021-11-25 19:05:39 +01:00
Éric Gaspar
cf6f44ea27
Merge pull request #84 from vincentux/patch-5
Update upgrade
2021-11-25 19:04:06 +01:00
Moul
67e49bfb1e [fix] #89: Use new permission system:
Requires YnH v4.1 which implements this new permission system
Use ynh_permission_create helper
Set Duniter admin interface accessible to the selected admin
BMA is set as accessible to visitors by default
Remove / −> /webui redirection, since this change adds a tile to the admin
Remove deprecated permission system settings
Re-enable the web admin since it is protected again
Rename f() name
2021-04-13 20:55:20 +02:00
Moul
4803879f5c [enh] #21: set Duniter as a systemd service
- use 'systemctl' instead of 'service'
2020-06-29 17:58:28 +02:00
vincentux
98152bc1be
Update upgrade 2020-06-11 18:26:52 +02:00
vincentux
a7ea7833fa
Create Dedicated User (if not existing) 2020-06-11 18:11:04 +02:00
Moul
3e379d9fa8 [mod] #51: remove no longer neccessary sudo 2018-11-29 17:03:39 +01:00
Moul
62336dd1cd [enh] configure Duniter at install and upgrade steps. 2018-03-13 19:37:59 +01:00
Cédric Moreau
d9494b91de Create upgrade 2017-06-14 16:40:34 +02:00
Moul
197f9369f4 [mod] move as a f() daemon stop and debian pkg removal. 2017-03-31 11:33:59 +02:00
Moul
6fa1bb77ba [mod] package cleannings. 2017-03-14 09:41:28 +01:00
Moul
3ecb69de8f [mod] scripts: use 'duniter' command as '' var won't works on
multi-instances.
2017-03-14 09:07:39 +01:00
Moul
4785db0549 [mod] upgrade: remove useless CPU architecture check. 2017-02-21 15:41:31 +01:00
Moul
07c73d399a [mod] #12: remove install path choice.
A dedicated domain name is needed and make it easier to configure.
Remove code on manifest, install and upgrade scripts.
2017-02-21 12:58:51 +01:00
Moul
07fa4fab81 [fix] upgrade: variable wasn't retrieved. 2017-02-21 11:54:48 +01:00
Moul
aeef0080cd [enh] close #19: use functions for duplicate code on scripts 2016-08-20 02:31:08 +02:00
Moul
6f96db42ac [enh] #14: automatically retrieve last version
- retrive last version available for x64 or for armel architectures
- upgrade enable set -u
2016-08-20 01:35:46 +02:00
Moul
0b0936031f [enh] nginx: check configuration before reload it. 2016-08-10 11:35:43 +02:00
Moul
bad29ef90e [enh] #12, grant access to the graphical interface only to the admin.
- install, upgrade: protect the path and grant access to admin user.
- upgrade: forget to comment unused sed.
- Update readme: add information about webadmin on root path.
2016-08-09 19:19:28 +02:00
Moul
40728d547d [fix] upgrade: fix syntax. 2016-07-23 15:04:07 +02:00
Moul
2f0a7722c8 [enh] close #7: enable ARM build which works.
- enable ARM build which works
- update upstream to 0.20.0
2016-07-03 11:47:35 +02:00
Moul
913d698e11 [enh] scripts: add futur access management for admin on /duniter and public access on /duniter/api. 2016-06-24 12:19:02 +02:00
Moul
32d3690e90 [enh] retrieve admin argument and store it. 2016-06-24 11:57:31 +02:00
Moul
38dddb4bba [fix] scripts: check CPU arch before doing modifications on the system. 2016-06-24 11:49:05 +02:00
Moul
6870bab1a2 [fix] upgrade retrieve port arguments. 2016-06-23 17:53:54 +00:00
Moul
283f1c0920 [fix] upgrade: access to web-ui.
- Disable set -u because of unbounding variable on $nginx_conf
- Retrieve domain and path arguments
- Remove trailling "/" on path var
- Grant access to /duniter path on the SSO
2016-06-23 12:57:52 +00:00
Moul
f61cc3606f [enh] use webstart cmd to launch duniter-ui. 2016-06-23 12:47:19 +00:00
Moul
c90a6ddc3e [enh] upgrade nginx conf in upgrade script. 2016-06-23 11:29:22 +00:00
Moul
e6ac3173c8 [enh] Retrieve arguments via environment variables. 2016-06-23 11:27:00 +00:00
Moul
200e5b12d8 [enh] store $arch and retrieve it in upgrade script. 2016-06-23 10:22:49 +00:00
Moul
b66d6c08ff [enh] add working upgrade script. 2016-06-22 18:42:13 +00:00
Moul
5dc34890eb [fix/Enh] Nginx conf wasn't applied. Add set -eu.
- [fix] do not move in /twp directory. Manage Debian package from current directory.
- [enh] add 'set -eu' in install and update scripts. Remove it from remove script.
2016-05-31 22:42:53 +00:00
Moul
67a632a5d0 [enh] update script: uCoin –> Duniter. 2016-05-31 22:42:53 +00:00
Moul
c92162d5d8 Some cleanning. 2016-05-31 22:42:52 +00:00
Moul
49d04d56cd Clone from https://moul.re/repo/moul/ucoin_ynh/ 2016-05-31 22:42:52 +00:00
Moul
940f146d5f Update from https://moul.re/repo/moul/ucoin_ynh/ 2016-05-31 22:42:52 +00:00
Moul
4b6e84a0c5 update scripts 2016-05-31 22:42:33 +00:00
Moul
ecd048b3d7 first commit 2016-05-31 22:42:33 +00:00