111 Commits

Author SHA1 Message Date
Kayou
efee70b606
Fix upgrade 2019-03-12 00:57:58 +01:00
Kayou
0d668765e5
No more service_name 2019-03-11 20:30:16 +01:00
keoma
5916e7c8dd adding systemctl daemon-reload before enabling services 2019-03-07 22:41:44 +01:00
Kayou
d015446ff7
Fix backup/restore, again 2019-02-27 23:26:38 +01:00
Kayou
a05204c26c
description in upgrade 2019-02-27 22:48:57 +01:00
Kayou
7aaca1167b
Trying to fix the restore 2019-02-27 22:48:35 +01:00
Kayou
a58a3742b5
service_name not service_checker 2019-02-27 22:33:21 +01:00
Kayou
2b60906505
fix use of ynh_add_systemd_config 2019-02-27 22:19:33 +01:00
Kayou
7e3813808b
Fix missing arg 2019-02-27 22:05:06 +01:00
Kayou
009efe81e8
first iteration of restore script 2019-02-27 21:45:58 +01:00
Kayou
06dc1f46ab
First iteration of backup script 2019-02-27 21:45:46 +01:00
Kayou
8d1dbc3684
Retrieve service_name 2019-02-27 21:45:28 +01:00
Kayou
d26f296dd5
Store service_name 2019-02-27 21:44:39 +01:00
Kayou
d5c632e7db
use ynh helper in vpnclient_deploy_files_and_services 2019-02-27 21:44:22 +01:00
Kayou
aff39ce947
upgrade: using ynh_replace_string and php 7 2019-02-27 21:09:16 +01:00
Kayou
646f2ee61f
We are now using php7.0 2019-02-27 21:03:12 +01:00
Kayou
f5d3e45e9f
Use ynh variable for install script 2019-02-27 21:00:17 +01:00
keoma
6f71831614 updating script to new standards 2019-02-26 21:13:27 +01:00
keoma
5c90da1a79 fix #53 2019-02-26 21:00:45 +01:00
keoma
7646ffbb28 fix #50 2019-02-25 22:24:19 +01:00
Alexandre Aubin
cf2dcfa953 Fix ynh_secure_remove usage 2018-12-18 20:44:24 +01:00
Alexandre Aubin
ed60b7782a No need to sudo all over the place 2018-12-18 20:44:24 +01:00
Alexandre Aubin
fe159638f5 rm -rf -> ynh_secure_remove 2018-12-18 20:44:24 +01:00
Alexandre Aubin
fc1d305b2b Clean / simplify / reorganize a few things in install script 2018-12-18 20:44:24 +01:00
Alexandre Aubin
34d8b55b44 This file aint used / needed anymore 2018-12-18 20:44:24 +01:00
Alexandre Aubin
bbc821a632 ynh_die does not exists before helpers sourcing 2018-12-02 23:49:24 +01:00
Alexandre Aubin
2f04d16d4f At the end of the upgrade, restart vpnclient only if it's already active 2018-12-02 23:27:35 +01:00
pitchum
1c06d02d49 [mod] Make package_linter happier than ever. 2018-12-02 19:15:27 +01:00
pitchum
9edd5f3b96 [mod] Reenable abort_if_erros in upgrade script (to make package_linter happy). 2018-12-02 18:52:17 +01:00
pitchum
f9ab657dbb [mod] Make our package_linter happy again. 2018-12-02 16:29:54 +01:00
pitchum
62ed195729 [fix] Remove sudoers file on app remove. 2018-12-02 13:30:27 +01:00
pitchum
4929faf2be [fix] Backport fixes from my old dev branch. 2018-12-02 13:03:23 +01:00
pitchum
e86d83049e [fix] upgrade script needs sourcing _common.sh and helpers. 2018-12-02 12:23:30 +01:00
pitchum
97c32df3cc [enh] Purge apt dependencies on remove. 2018-12-02 11:22:22 +01:00
pitchum
94bbcdb2db [fix] Create a dedicated system user with proper sudo permissions.
Ref. #41.
2018-12-02 11:22:19 +01:00
pitchum
9d2bc631e5 [wip] Disabling backup and restore scripts (temporarily). 2018-12-02 11:21:48 +01:00
pitchum
53ccf1d4e1 [fix] user/group = www-data in php-fpm config. 2018-12-02 11:20:39 +01:00
pitchum
9bc126ebd3 [fix] upgrade script sets 'final_path' setting. 2018-12-02 11:19:55 +01:00
pitchum
c004113529 Removed hard-coded "vpnadmin" string. 2018-12-02 11:19:55 +01:00
pitchum
993441d89f Rewriting packages scripts. backup (WIP). 2018-12-02 11:19:50 +01:00
pitchum
c47d8e2195 Moar experimental helpers needed. 2018-12-02 11:18:38 +01:00
pitchum
ed17abfd32 Bugfix: revert changes not compatible with stable yunohost. 2018-12-02 11:18:38 +01:00
pitchum
8294528c67 Add missing helpers.
- read_json
- read_manifest
- abort_if_up_to_date
2018-12-02 11:18:38 +01:00
pitchum
432569620c [mod] upgrade, disable auto-backup/restore 2018-12-02 11:18:38 +01:00
pitchum
abd0145d4e [fix] Do not start vpnclient service on first install. 2018-12-02 11:18:38 +01:00
pitchum
abce6aef00 [mod] install and upgrade scripts share some common code. 2018-12-02 11:18:36 +01:00
pitchum
8cbe81be03 [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-12-02 11:15:06 +01:00
pitchum
f6165c5dc6 [fix] upgrade script renames paths to comply with the new ones. 2018-12-02 11:04:43 +01:00
pitchum
5ff35acd1c [mod] upgrade script simplified: does nothing except a backup. 2018-12-02 11:00:10 +01:00
pitchum
124d11cebe [mod] Hard-coded occurrences of "vpnadmin" replaced with ${app} (where appropriate). 2018-12-02 10:57:10 +01:00