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.
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).
```
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
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.
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 '/'.