Félix Piédallu
bd4d08752e
Reorganize a bit the scripts:
...
* Add configuration files before system configuration in install and upgrade scripts
* In upgrade scripts, stop systemd service before 'ensure downward compatibility' because most apps need a stopped service before moving files around
2024-02-21 16:34:51 +01:00
Félix Piédallu
48b7d28c35
Remove double header comments, since packagingv2 there are less and less 'specific steps' and 'generic steps'.
...
I feel like they don't make much sense anymore.
2024-02-21 16:33:41 +01:00
Félix Piédallu
0907459b4e
Use less generic messages for progression
2024-02-21 16:26:17 +01:00
eric_G
d35266b80e
Update upgrade
2024-02-10 21:57:32 +01:00
Félix Piédallu
9dd25c37a0
Rework upgrade, remove the 'if upgrade_type == UPGRADE_APP' test.
...
Indeed, even if the upgrade is only a 'ynh revision', this revision might actually be fixing
what *is* inside this if test.
So we can't discriminate generic things in the script according to the upgrade_type.
The ynh_check_app_version_changed helper is now a simple shim that reads YNH_APP_UPGRADE_TYPE.
The rest of its old logic is now handled by the core.
So instead of calling it, we can just read YNH_APP_UPGRADE_TYPE and add some documentation about
possible values.
2024-01-11 10:29:35 +01:00
Félix Piédallu
2bce5bbc26
Fix comments: # for real scripts comments, ### for app packaging doc
2024-01-10 23:53:14 +01:00
Félix Piédallu
2a9127168e
Change tabs to spaces, move 'if, then' on a single line instead of splitted lines
2024-01-10 23:34:28 +01:00
OniriCorpe
a9eca3e1d5
fix SC2086
2023-12-30 03:02:42 +01:00
mh4ckt3mh4ckt1c4s
d9defeaa15
Fix outdated mentions to app.src
2023-10-07 23:11:13 +02:00
CodeShakingSheep
91959234f0
Fix typos in upgrade
2023-09-13 11:13:50 +02:00
Éric Gaspar
cde5def003
Update upgrade
2023-03-08 09:36:13 +01:00
Éric Gaspar
47d1847c08
Update upgrade
2023-02-07 10:18:15 +01:00
Éric Gaspar
c9d4c3b084
cleaning
2023-02-07 10:13:09 +01:00
Alexandre Aubin
6632184257
Propagate changes related to manifestv2
2023-01-30 19:22:59 +01:00
Éric Gaspar
c343fb371d
Merge branch 'master' into remove-time
2022-08-15 08:00:13 +02:00
yalh76
d1a52e65ff
Reorder php-fpm and nginx
2022-05-31 01:56:33 +02:00
yalh76
fca4551937
Reorder install arguments
2022-03-04 20:53:21 +01:00
tituspijean
491c801165
Remove --time flags, they are now implied in CI context
2022-03-03 23:39:04 +01:00
yalh76
72d31ae499
Update upgrade
2021-05-09 20:26:00 +02:00
yalh76
055f77fc92
More script progression
2021-04-29 21:08:10 +02:00
yalh76
5770492e5f
Merge pull request #154 from YunoHost/config
...
config before systemd
2021-04-23 21:25:34 +02:00
yalh76
a9ca97f5d0
config before systemd
2021-04-23 20:00:41 +02:00
yalh76
3d70d72cfb
Switching to $app:www-data owner
2021-04-23 19:54:08 +02:00
yalh76
39d56882ed
Typo
2021-04-09 21:16:25 +02:00
yalh76
167fdd4bb5
removing SECURE FILES AND DIRECTORIES
2021-04-08 20:21:51 +02:00
Alexandre Aubin
b1a9e78466
Typo: forgot target in chmod
...
Co-authored-by: yalh76 <yalh@yahoo.com>
2021-03-17 21:37:29 +01:00
Alexandre Aubin
6deb6f1f14
Properly manage folder/file permissions
2021-03-17 16:32:11 +01:00
Alexandre Aubin
b7b0e172a5
Recommend the use of ynh_add_config
2021-03-12 16:41:18 +01:00
Kayou
bd44d211e2
Apply suggestions from code review
2021-01-10 20:23:32 +01:00
Alexandre Aubin
3c263428b1
Update scripts/upgrade
...
Co-authored-by: Kayou <pierre@kayou.io>
2021-01-10 18:54:28 +01:00
Kay0u
f4e7ffa3db
Typo
2021-01-06 13:39:27 +01:00
Kay0u
55fb01f4b7
Merge remote-tracking branch 'origin/master' into permissions
2021-01-06 13:35:20 +01:00
Kay0u
9b6cc80ecc
Improve permissions management
2021-01-06 13:31:56 +01:00
ericgaspar
abddc7d868
Small typos
2020-12-04 09:58:29 +01:00
Alexandre Aubin
03082fdc09
ynh_normalize_url_path is for stuff from the pre-2.7 era ...
2020-12-01 01:25:08 +01:00
Alexandre Aubin
0e728462e5
These should not be added by default either so comment them...
2020-12-01 00:27:28 +01:00
Alexandre Aubin
5c11751afe
Remove migration of 'is_public' being a string
2020-12-01 00:22:50 +01:00
Alexandre Aubin
d7f1d45dda
Apply suggestions from code review
...
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-09-19 16:26:41 +02:00
ericgaspar
644d29331a
Typos
2020-09-17 11:38:17 +02:00
yalh76
d2f32be8ed
Update upgrade
2020-06-16 23:07:13 +02:00
yalh76
370d562e89
Merge branch 'master' into service_integration
2020-06-16 22:55:28 +02:00
yalh76
26a5c52d5b
Change step upgrade step order
...
to be compliant with install script
2020-06-04 17:26:46 +02:00
yalh76
6e9e1728b0
Revert "Change upgrade steps order"
...
This reverts commit 265e7b02ca
.
2020-06-04 17:24:38 +02:00
yalh76
265e7b02ca
Change upgrade steps order
...
to be homogeneous with install steps order
2020-06-04 17:22:45 +02:00
yalh76
67437ba64d
Adding service integration step during upgrade
2020-06-04 16:52:38 +02:00
yalh76
49c7cbcd29
improving modify a config file step during upgrade
2020-05-30 14:59:12 +02:00
Maniack Crudelis
e5f2a4510a
Add public access only if already there
2020-03-30 22:56:35 +02:00
Kay0u
65e0c8e926
better migration to the new permission process
2020-03-30 19:07:55 +02:00
Kay0u
86d348b312
Using new permissions system
2020-02-08 23:16:25 +07:00
Maniack Crudelis
f293009100
Small fixes
2019-05-07 12:03:25 +02:00