e9c418afcb
Deduplicate code to wait for server to start
2023-09-06 14:39:23 +02:00
a4b83bcf21
Fix manifestv2 migration
2023-09-06 14:39:23 +02:00
4bc0aea7e7
Automatic migration
2023-09-06 14:39:23 +02:00
Félix Piédallu
b35e273f4b
Forgot one ynh_systemd_action --log_path...
2023-09-05 16:40:45 +02:00
Félix Piédallu
3d7d325fd4
Fix ynh_systemd_action: log_path is now /var/log/$app/$app.log, the default.
2023-09-05 14:08:00 +02:00
cde4364797
Configure logging to /var/log/ihatemoney
2023-09-05 14:08:00 +02:00
yalh76
7cc5132693
Fix hashed password
2022-06-16 14:31:56 +02:00
yalh76
557ca10a2f
Better upgrade
2022-06-14 00:48:24 +02:00
yalh76
b56654d4c1
Manage ADMIN_PASSWORD
2022-06-14 00:13:19 +02:00
yalh76
12a4e9d4f6
Apply last example_ynh
2022-03-13 16:02:11 +01:00
Salamandar
22274b3895
Update scripts/upgrade log_type -> log
...
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-12-16 19:41:42 +01:00
ce58c792c7
Full revamp of ihatemoney_ynh:
...
* Use example_ynh as a template
* Implement change_url
* Use the new yunohost permissions system
* Use a python3 venv
* Use a systemd service + gunicorn
* Allow multiple instances (stop installing in /opt/yunohost/ihatemoney)
2021-11-10 11:45:14 +01:00
JocelynDelalande
bb8c70fff6
Dropping requirement on python2
...
Nitpicking…
2020-07-26 18:54:02 +02:00
Alexandre Aubin
d66fcad5ff
Misc fixes to make the linter happier
2020-07-26 18:20:17 +02:00
Jocelyn Delalande
e66190934f
Cleanup outdated comment
2018-12-20 08:07:48 +01:00
Jocelyn Delalande
19bede5ab0
Factorize pip stuff
...
between install and upgrade
2018-12-20 08:07:30 +01:00
Jocelyn Delalande
6fde558788
Upgrade upstream to 3.x
...
Should fix the failing level2 of yunohost-apps CI also (infinite redirection
bug fixed upstream).
Fix #30
Ref https://github.com/YunoHost/apps/pull/553#issuecomment-448883502
2018-12-20 07:30:28 +01:00
Jocelyn Delalande
daa8266d13
Add space char to avoid confusing package_linter
...
The code was working but crashing package_linter
2018-12-18 18:30:44 +01:00
Jocelyn Delalande
87df116166
Handle Python version change on upgrade
...
Whispers: Actually that is to handle Jessie → Strech upgrade, that switches
from Py 3.4 to 3.5.
2018-12-18 18:28:00 +01:00
Jocelyn Delalande
321d6cb2d9
Use ynh helpers for error handling
...
Instead of doing it by hand.
Also we now rely on the fact ynh automatically runs uninstall script if the
install fails. So no more need for manual cleanup.
2018-12-18 18:28:00 +01:00
Jocelyn Delalande
ca79fcdbdd
Upgrade to 2.x upstream
...
Huge change in package, mainly because we switch from a tarball-based install to a
pip-based install (which is the default install method).
It require quite some refactor to common.sh and a more consistent and clear
migration handing in upgrade script.
Fix #19 #16
2018-06-24 02:22:25 +02:00
Jocelyn Delalande
6f8b6b7e57
Fix SECRET_KEY regeneration on upgrade
...
It was failing in case when the random key contained "/" char.
2018-04-03 00:32:08 +02:00
Jocelyn Delalande
efc35dd01d
Switch from Python-MySQL → PySQL
...
Even if Python-MySQL is the default lib for `mysql://` scheme with SQLAlchemy, it
got no release since 2014, and does not support Py3. PySQL seems to be the
current standard.
2018-04-03 00:21:10 +02:00
Jocelyn Delalande
05807e6a47
Add rollback function to upgrade
2018-04-03 00:21:10 +02:00
Jocelyn Delalande
d738df4875
Switchs to python3
...
rebuilds the venv from scratch on upgrade.
2018-04-03 00:21:10 +02:00
Jocelyn Delalande
bb40c91db7
[fix] Adapt to new ihatemoney settings behaviour
...
Since v1.0 ihatemoney reads its settings from /etc/ihatemoney/ihatemoney.cfg
See https://github.com/spiral-project/ihatemoney/pull/193
2017-06-21 17:10:26 +02:00
Jocelyn Delalande
87fac52549
Fix several mis-ordered and missing instructions
2017-06-18 17:14:35 +02:00
Jocelyn Delalande
cd65e10413
Fix upgrade script
...
(common inclusion was failing)
2017-06-17 18:27:41 +02:00
Jocelyn Delalande
c114aa6ac8
Use releases tarballs rather than git master.
...
- upgrade to ihatemoney 0.9
- refactor some code into a `_common.sh`
2017-06-17 00:22:16 +02:00
Jocelyn Delalande
cd55bf42e2
Use the recommended set
in scripts
2017-03-18 19:13:10 +01:00
Jocelyn Delande
4944d0a96f
Fix upgrade script
...
refs #5
2016-07-10 17:41:41 +02:00
Jocelyn Delande
f039b6f710
Fix manifest to comply with ynh 2.4 style
...
The shift to 2.4 is not finished though ; still TODO :
- backup/restore scripts
- use of the helpers ?
- remove deprecated yunohost commands
2016-06-18 00:33:51 +02:00
Jocelyn Delande
6cf166e216
Added upgrade script
2015-05-02 16:36:51 +02:00