1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
Commit graph

260 commits

Author SHA1 Message Date
Chris Vogel
db5bfde99b email address needs a dot in hostname... 2024-06-15 14:24:50 +02:00
Chris Vogel
59467240fa extend tests.toml with argument for admin_mail 2024-06-15 14:12:56 +02:00
Chris Vogel
add2cb2682 Merge branch 'testing' of github.com:YunoHost-Apps/flohmarkt_ynh into testing 2024-06-15 14:00:01 +02:00
Chris Vogel
2c68e47752 add type in manifest.toml 2024-06-15 13:59:39 +02:00
yunohost-bot
15b4d62f3d Auto-update READMEs 2024-06-15 11:54:17 +00:00
Chris Vogel
82c4460cc2 Merge branch 'testing' of github.com:YunoHost-Apps/flohmarkt_ynh into testing 2024-06-15 13:54:06 +02:00
Chris Vogel
461fbc488c PRE_UPGRADE.md 2024-06-15 13:53:03 +02:00
Chris Vogel
693d856a4b ynh8, PRE_UPGRADE.md 2024-06-15 13:48:10 +02:00
Chris Vogel
dbb9891351 simple urlwatch integration
that sends an email to the admin of flohmarkt or the admin group of yunohost
when the user database changes
2024-06-15 13:34:58 +02:00
Chris Vogel
29a06fcab1
Merge pull request #22 from YunoHost-Apps/testing
cleaning linter messages
2024-06-13 08:06:38 +02:00
Chris Vogel
e0be0bb780 bashtastig 2024-06-12 21:50:42 +02:00
Chris Vogel
0997efa17b when observation changes the result...
🤦
2024-06-12 20:15:50 +02:00
Chris Vogel
e45aa5de8a repair getting rid of warnings 2024-06-12 18:17:18 +02:00
Chris Vogel
e9f1a5f245 remove some more linter warnings 2024-06-12 14:33:45 +02:00
Chris Vogel
636529266a Merge branch 'testing' of github.com:YunoHost-Apps/flohmarkt_ynh into testing 2024-06-12 13:58:15 +02:00
Chris Vogel
96d0281249 get rid of some linter warnings 2024-06-12 13:57:38 +02:00
Chris Vogel
353c9cfaa6
Merge pull request #21 from YunoHost-Apps/testing
image caching
2024-06-11 13:53:25 +02:00
yunohost-bot
4b61a17160 Auto-update READMEs 2024-06-11 10:47:32 +00:00
root
6d85977ee5 Merge branch 'testing' of github.com:YunoHost-Apps/flohmarkt_ynh into testing 2024-06-11 12:46:55 +02:00
root
026f2e0d38 flohmarkt update: image caching 2024-06-11 12:44:43 +02:00
Chris Vogel
08892dc4f4
Merge pull request #19 from YunoHost-Apps/testing
Testing new ynh_local_curl and ynh_handle_getopts_args
2024-05-30 19:56:01 +02:00
yunohost-bot
660ac9c6e8 Auto-update READMEs 2024-05-30 17:32:54 +00:00
Chris Vogel
6c6e6be731 linter correction, ynh6 2024-05-30 19:32:23 +02:00
Chris Vogel
7abcb001d1 Merge branch 'testing' of github.com:YunoHost-Apps/flohmarkt_ynh into testing 2024-05-30 17:33:47 +02:00
Chris Vogel
abda91e1e2 get rid of flohmarkt_ynh_check_old_couchdb
CouchDB databases left over from old installations are now handled graceful:

* if restore finds one it's renamed before importing the backup from json and the user is warned
* if install finds one it is re-used

Integrated ynh_handle_getopts_args and ynh_local_curl development versions into _common.sh again, because sourcing them from there didn't work well because of different paths during install, restore.
2024-05-30 17:28:49 +02:00
Chris Vogel
38f8e48f93 rename couchdb before restore if exists
https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/62
2024-05-30 12:59:15 +02:00
Chris Vogel
b87ce1299e new argument --seperator
to allow choosing how provided data will be concatenated
2024-05-30 12:58:37 +02:00
Chris Vogel
e1ec0e97e1 moved initialize_couchdb into _common.sh
and replaced it in install and upgrade by a function call
2024-05-30 10:59:43 +02:00
Chris Vogel
58ef9c10a4 on the way to ynh6
https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/54
https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/29
https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/12
2024-05-30 08:50:08 +02:00
Chris Vogel
ac1e1798ff using ynh_local_curl
replaced direct call of curl by ynh_local_curl.

placed local development version of ynh_local_curl and ynh_handle_getopts_args
in their own files
2024-05-29 11:19:09 +02:00
yunohost-bot
879a03372a Auto-update READMEs 2024-05-28 09:48:51 +00:00
Chris Vogel
ca71aea833 Merge pull request 'use_new_curl_n_getopts' (#61) from use_new_curl_n_getopts into testing
Reviewed-on: https://codeberg.org/flohmarkt/flohmarkt_ynh/pulls/61
2024-05-28 08:57:52 +00:00
Chris Vogel
c6a4096829 1st version that actually installed flohmarkt
This version installed flohmarkt successfully.

In _common.sh it overrides the yunohost core subroutines ynh_handle_getopts_args
and ynh_local_curl in preperation of extending ynh_local_curl to support all the
features I'd need in flohmarkt scripts (while hopefully maintaining backward
compatibility).
2024-05-28 10:54:23 +02:00
Chris Vogel
560221861c a corner case
```
the following cases need to be taken care of
'--arg=value'    → works
'--arg= value'   → works
'--arg=-value'   → works
'--arg= -v'      or
'--arg= --value' → works if not exists arg '[v]=value='
                 → $arg will be set to '-v' or '--value'
  but if exists '[v]=value=' this is not the expected behavior:
  → then $arg is expected to contain an empty value and '-v' or '--value'
    is expected to be interpreted as its own valid argument
  (found in use of ynh_replace_string called by ynh_add_config)
  solution:
  insert an empty arg into array arguments to be later interpreted by
  getopts as the missing value to --arg=
```

There's still missing to limit adding of an additional empty argument
only once when the actual argument fits the actual option_flag
2024-05-27 20:18:42 +02:00
Chris Vogel
59d2579bdf changed order of source …
yunohost helpers get included first so that I can overwrite them
from _common.sh
2024-05-26 19:47:35 +02:00
Chris Vogel
dc81581c1f added --line-match 2024-05-26 17:11:18 +02:00
Chris Vogel
afa2be87c8 gitignore 2024-05-26 16:35:12 +02:00
Chris Vogel
82725cc58b Merge pull request 'redesigned ynh_local_curl and ynh_handle_getopts_args' (#60) from curl_devel into testing
Reviewed-on: https://codeberg.org/flohmarkt/flohmarkt_ynh/pulls/60

work in preperation for https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/51
2024-05-26 12:57:04 +00:00
Chris Vogel
108be10c41 test script not needed anymore (hopefully) 2024-05-26 14:53:21 +02:00
Chris Vogel
047af9605c new versions of ynh_local_curl and ynh_handle_getopts_args
included in _common.sh as

* flohmarkt_ynh_handle_getopts_args and
* flohmarkt_ynh_local_curl

to be tested.

Added some simple debugging sub to easily switch on and off my debugging output.
2024-05-26 14:49:18 +02:00
Chris Vogel
1c1b5c9a38 pof for ynh_handle_getopts_args 2024-05-23 14:25:28 +02:00
Chris Vogel
a3f0e5339b work on curl and getopts
intermediate
2024-05-22 17:44:51 +02:00
Chris Vogel
e8625977a7 fixed small problems 2024-05-19 13:51:00 +02:00
Chris Vogel
55554fd0fc
Merge pull request #17 from YunoHost-Apps/master
Merge pull request #16 from YunoHost-Apps/testing
2024-05-17 10:58:22 +02:00
Chris Vogel
fd18937f4c
Merge pull request #16 from YunoHost-Apps/testing
/path doesn't work - disabled
2024-05-17 10:53:44 +02:00
Chris Vogel
76c804fd15 disable install.path - doesn't work 2024-05-17 08:46:59 +02:00
Chris Vogel
1a04ffcfaf
Merge pull request #15 from YunoHost-Apps/master
Merge pull request #13 from YunoHost-Apps/testing
2024-05-16 13:03:19 +02:00
Chris Vogel
d32575780a
Merge pull request #13 from YunoHost-Apps/testing
…finally
2024-05-16 12:55:11 +02:00
Chris Vogel
93b7ec25b8 still found errors on the way to ynh5 2024-05-15 21:15:09 +02:00
Chris Vogel
9d893b688e check for old db(user), added information
information added about the state of the integration
Release candidate for ynh5
2024-05-15 20:48:18 +02:00