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

53 commits

Author SHA1 Message Date
942bd045dc Fix install directory permissions 2023-09-08 23:06:32 +02:00
Félix Piédallu
68eed5b920 Cleanup: double quotes, remove chown/chmod duplicates. 2023-09-06 14:39:23 +02:00
Félix Piédallu
4093b18e9b Implement a _hash_password helper that only requires standard python lib. 2023-09-06 14:39:23 +02:00
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
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
b56654d4c1 Manage ADMIN_PASSWORD 2022-06-14 00:13:19 +02:00
yalh76
71b9f4c960 Upgrade to 5.2.0~ynh1 2022-06-11 05:03:46 +02:00
yalh76
12a4e9d4f6 Apply last example_ynh 2022-03-13 16:02:11 +01:00
Salamandar
c187a39fe1
Update scripts/install log_type -> log
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-12-16 19:41:08 +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
Alexandre Aubin
d66fcad5ff Misc fixes to make the linter happier 2020-07-26 18:20:17 +02: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
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
4f279503d1 Switch to non-deprecated helper: checkurl → ynh_webpath_register
Iso-functionnal commit. Simply removes a warning.
2018-11-25 17:11:09 +01:00
Jocelyn Delalande
98cad80c80 Use systemctl instead of service
Fix #10
2018-07-08 01:31:57 +02:00
Jocelyn Delalande
7a6ddcf2cb Fix install when supervisor is already installed 2018-07-08 01:30:18 +02:00
Jocelyn Delalande
04a8485709 Adapt to PyMysql>=0.9 new requirements
Sadly, this will increase the install time.

Ref https://github.com/spiral-project/ihatemoney/pull/357
Ref https://github.com/PyMySQL/PyMySQL/issues/697
2018-07-08 01:28:26 +02:00
Jocelyn Delalande
992967e5c8 Fail install if the socket is not responding at the end of install 2018-07-08 01:27:18 +02: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
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
d738df4875 Switchs to python3
rebuilds the venv from scratch on upgrade.
2018-04-03 00:21:10 +02:00
Jocelyn Delalande
e04ee9c0f2 [fix] fix static path for nginx conf
Was broken since 00243d4
2017-06-21 17:10:26 +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
c35bff5ded [ehn] reload nginx at the end of install 2017-06-20 16:25:41 +02:00
Jocelyn Delalande
7a68ba1c3e Revert "[ehn] Remove useless lines"
This reverts commit 2c7cb29974.

This commit made package checker failling.
2017-06-19 14:48:19 +02:00
Jocelyn Delalande
a949dc1872 [ehn] Factorize code between install and restore
Fix #13
2017-06-19 09:35:17 +02:00
Jocelyn Delalande
546581d642 [ehn] Use MySQL drop helpers 2017-06-19 02:01:33 +02:00
Jocelyn Delalande
2c7cb29974 [ehn] Remove useless lines 2017-06-19 01:53:45 +02:00
Jocelyn Delalande
7d38d249f4 Fix installation on domain root
`APPLICATION_ROOT='/'` is not working, if we are on root, ihatemoney requires
that the `APPLICATION_ROOT` setting is absent.
2017-06-19 01:20:59 +02:00
Jocelyn Delalande
1ef89e5ba2 Fix 502 errors right after installation 2017-06-18 17:13:39 +02:00
Jocelyn Delalande
00243d4a5c Normalize path 2017-06-18 17:11:10 +02:00
Jocelyn Delalande
b14bea4865 Add backup/restore scripts 2017-06-17 17:28:57 +02:00
Jocelyn Delalande
9b7d0e7ac2 Fix typo 2017-06-17 11:31:38 +02:00
Jocelyn Delalande
14cdb2f5c9 Create /opt/yunohost in install script 2017-06-17 11:11:23 +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
b0ae7b8c77 Use recommended helpers in scripts
Thanks to ynh-package-linter :-)
2017-03-31 15:49:56 +02:00
Jocelyn Delalande
cd55bf42e2 Use the recommended set in scripts 2017-03-18 19:13:10 +01: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
309e46013f Cleans after itself in case the install fails.
Refs #1 and #4 (and hopefuly fixes them)
2015-07-26 18:23:54 +02:00
Jocelyn Delande
96b92b6ee6 socket is now in /tmp/ as /var/run/ihatemoney gets rm on each reboot
fixes #3
2015-06-10 00:13:01 +02:00
JocelynDelalande
4f11a695f7 Forgot mysql dev libraries dependencies 2015-05-03 18:38:48 +02:00
Jocelyn Delande
5d2a476e30 Added ability to make the service public 2015-05-02 17:28:58 +02:00
Jocelyn Delande
1da51108d7 scripts made executable 2015-05-02 16:29:03 +02:00
Jocelyn Delande
cc4ef6d42b Re-ordered install script 2015-05-02 12:47:52 +02:00
Jocelyn Delande
551d7db1d8 Register domain, for uninstalling purpose. 2015-05-02 12:47:27 +02:00
Jocelyn Delande
9e79dc10ad Fixed permissions so that www-data can access static files 2015-05-02 12:46:49 +02:00