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

24 commits

Author SHA1 Message Date
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
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
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
dc81581c1f added --line-match 2024-05-26 17:11:18 +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
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
Chris Vogel
f1bfdd1283 changed logfile path and added symlinks
issue #49
2024-05-15 13:38:45 +02:00
Chris Vogel
935a8e7844 1st time working backup/restore
:)
2024-05-14 20:40:51 +02:00
Chris Vogel
ef2b69ecc2 correct couchdb-dump.sh call 2024-05-14 14:24:13 +02:00
Chris Vogel
01a864eef1 export/import couchdb 1st try 2024-05-14 14:13:41 +02:00
Chris Vogel
c3973976cc improvements to upgrade 2024-05-10 09:15:22 +02:00
Chris Vogel
94ec94e32d corrections to backup/restore 2024-05-08 16:14:04 +02:00
Chris Vogel
6287cd7725 Upgrade paths/filename part III
now it works on my test system...
2024-05-08 11:18:05 +02:00
Chris Vogel
b943dfa6f1 paths and filenames - part II
adjusted paths after trying, thinking and talking to people in the matrix room again.
2024-05-07 12:18:36 +02:00
Chris Vogel
b6d9fac30f New file- and pathnames
Quiet a ride, but on my test system it installs and removes.

Upgrade will not work, yet. Renaming is missing.

Multiple installs should work.
2024-05-06 07:47:13 +02:00
Chris Vogel
b5e0f424f9 reworked install paths
new paths are now defined in _common.sh like this
```
flohmarkt_install="/opt/${id}/${domain}${url_path}/src"
flohmarkt_venv_dir="/opt/${id}/${domain}${url_path}/venv"
```
giving a nice layout following the domain and path the flohmarkt uses as its URL.

Activated path resource in manifest.toml to let the admin choose a path different from '/'.
2024-04-30 14:12:49 +02:00
Chris Vogel
0d8d4e316b couchdb only - so far 2024-02-21 16:50:15 +01:00