Commit Graph

164 Commits

Author SHA1 Message Date
pitchum
dd26146dc1 Add missing helpers.
- read_json
- read_manifest
- abort_if_up_to_date
2018-08-31 10:21:58 +02:00
pitchum
db03e844c1 [mod] upgrade, disable auto-backup/restore 2018-08-31 10:21:58 +02:00
pitchum
590f04c82d [fix] Do not start vpnclient service on first install. 2018-08-31 10:21:58 +02:00
pitchum
51ef23df46 [mod] install and upgrade scripts share some common code. 2018-08-31 10:21:58 +02:00
pitchum
681fe2b58c [mod] backup script rewritten (inspired and adpated from example_ynh).
Currently neither backup nor restore are useful but are safe enough to
not break the upgrade script. That's what matters for now.
2018-08-31 10:21:58 +02:00
pitchum
76eacf55fa [fix] upgrade script renames paths to comply with the new ones. 2018-08-31 10:21:58 +02:00
pitchum
6af9492d59 [mod] upgrade script simplified: does nothing except a backup. 2018-08-31 10:21:58 +02:00
pitchum
53c4d6c0dc [mod] Hard-coded occurrences of "vpnadmin" replaced with ${app} (where appropriate). 2018-08-31 10:21:58 +02:00
pitchum
aa7bbd6a4c [mod] Created file check_process for driving CI builds. 2018-08-29 10:40:12 +02:00
pitchum
7800953960 [fix] upgrade script requires some helpers.
```
Warning: Upgrading app vpnclient...
Warning: ./upgrade: line 35: ynh_abort_if_up_to_date: command not found
Warning: !!
Warning:   vpnclient's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning:
Error: Unable to upgrade vpnclient
```
2018-08-25 19:24:31 +02:00
ljf (zamentur)
1fc4581106 [fix] Sync the date with http if ntp can't (#37)
* [fix] Sync the date with http if ntp can't
2018-06-13 11:30:43 +02:00
ljf (zamentur)
081447008c [fix] Let VPN mount (#38) 2018-05-22 09:43:35 +02:00
Bastien
24ff5a8687 travis improvement
with manifest check JSON
2018-05-13 12:33:59 +02:00
agentcobra
a55574ac9b Update README.md
add integration from jenkins
2018-05-13 11:48:07 +02:00
Sebastien Badia
9c736b4804 doc: s/NextCloud/LaBriqueInterNet VPNclient/ thx agentcorba 2018-05-13 11:38:27 +02:00
Sebastien Badia
3efa16e19e doc: Update syntax (badges) 2018-05-13 11:25:37 +02:00
Sebastien Badia
c4d2bab59c doc: Added install badge 2018-05-13 11:22:56 +02:00
agentcobra
05878ea230 Merge pull request #34 from keomabrun/master
using new helpers and script formatting
2018-04-25 20:18:55 +02:00
Keoma Brun
809dc19c80 using new helpers and script formatting 2018-04-09 16:11:08 +02:00
ljf (zamentur)
35f38ec86c [enh] Update version number 1.0.1 2018-04-08 13:55:09 +02:00
ljf (zamentur)
a642a01029 [fix] Add fake-hwclock to avoid RTC 1970 date
A20 Allwinner seems to have a RTC but i think this one can't work when the board is shutdown (during several minutes/hours/days ?).  This package register the last date and set it early in the boot process.
2018-04-08 13:55:09 +02:00
ljf (zamentur)
5654b6d0b2 [fix] ntpd blocked cause firewall to strict 2018-04-08 13:54:28 +02:00
agentcobra
b34644c729 Update upgrade
quick fix for ci building failling
2018-04-06 13:09:02 +02:00
Sebastien Badia
c9d7537387 cr: Update notifications settings 2018-03-23 10:29:24 +01:00
agentcobra
8aab3c7dd2 Package improvement (#31)
* fix manifest

* fix tabs

* add Services section in manifest

* Fix invalid JSON
open an issue https://dev.yunohost.org/issues/1097

* fix "Impossible de satisfaire les pré-requis pour vpnclient : Paquet «
yunohost-moulinette » inconnu"

* finalisation manifest.json et harmonisation avec
https://yunohost.org/#/packaging_apps_manifest_fr

* ajout de du CI avec .travis.yml

* Update README.md

* lifting manifest.json

* remove exit 0 from scrits and add .gitignore

* fix lint error with exit

* fix #31

* refix #31
2018-03-23 09:23:57 +01:00
Julien Vaubourg
355b24ea0c Add time syncing before launching openvpn, to avoid issues due to 'certificate not yet valid' 1.0.0 2017-09-06 01:54:35 +02:00
Julien Vaubourg
33aafd1196 Set dns in resolv.dnsmasq.conf if available and restore the original file when the service is stopped 2017-08-30 14:28:45 +02:00
Julien Vaubourg
50c3346c26 Use systemctl helper to avoid deadlocks with ynh 2.7 and check path avaibility with no deprecated method 2017-08-30 14:27:56 +02:00
Julien Vaubourg
df431e8f78 Improve vpn client checker 2016-08-15 13:22:39 +02:00
Julien Vaubourg
0ce8634736 Merge pull request #29 from labriqueinternet/tests_upgrades
Add kind of backups when upgrading, and add a timer to be sure to have vpnclient started
2016-08-14 23:45:10 +02:00
Julien Vaubourg
cd197483cd Rollbacks as archives 2016-08-14 23:20:26 +02:00
Julien Vaubourg
a999bcf80b Ok guys, all of this is very crappy, but u know, we do the best 2016-08-14 22:57:48 +02:00
Julien Vaubourg
d5f0b913af You disappoint me, mr systemd 2016-08-14 22:30:41 +02:00
Julien Vaubourg
72e19aaacb Test without quotes 2016-08-14 22:17:42 +02:00
Julien Vaubourg
d6b7958064 Stop timer when removing 2016-08-14 22:13:41 +02:00
Julien Vaubourg
43d44616fa Remove quotes 2016-08-14 22:03:58 +02:00
Julien Vaubourg
b53b62a7a3 Remove require condition 2016-08-14 21:32:12 +02:00
Julien Vaubourg
fe1fbb990c Add fucking missing sudo 2016-08-14 21:07:59 +02:00
Julien Vaubourg
453fababef Add vpnclient checker timer and upgrade backups, to enable Bram to sleep better 2016-08-14 21:05:16 +02:00
Julien Vaubourg
093249b94e pwd without prompt 2016-08-14 19:14:10 +02:00
Julien Vaubourg
20db75b2b0 show pwd 2016-08-14 18:56:29 +02:00
Julien Vaubourg
2fd86faf81 Open firewall in vpnclient_out for each address defined for the vpn server domain 2016-06-14 23:31:52 +02:00
Julien Vaubourg
5564320248 Use --data-urlencode for avoiding errors with % and so on 2016-06-14 21:11:14 +02:00
Julien Vaubourg
b367056139 Save client.conf.tpl if modified, when backuping and upgrading 2016-05-28 17:13:59 +02:00
Julien Vaubourg
dd6ca03207 Fix permissions 2016-05-14 22:44:32 +02:00
Julien Vaubourg
c27a94463a Fix i18n FR and add some sudo to restore script 2016-05-14 22:14:47 +02:00
Julien Vaubourg
4eff9815f0 Fix restore script 2016-05-14 21:24:06 +02:00
Julien Vaubourg
e5ce4acb6a Update restore procedure 2016-05-14 16:08:22 +02:00
Julien Vaubourg
c08286273b Add xlock waiting to iptables commands 2016-05-07 23:28:34 +02:00
Julien Vaubourg
f93408013d Empty filter with no effect on the template 2016-04-17 16:47:39 +02:00