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

bashtastig

This commit is contained in:
Chris Vogel 2024-06-12 21:50:42 +02:00
parent 0997efa17b
commit e0be0bb780

View file

@ -650,7 +650,7 @@ flohmarkt_ynh_import_couchdb() {
flohmarkt_ynh_delete_couchdb_user() { flohmarkt_ynh_delete_couchdb_user() {
local couchdb_user_revision=$( flohmarkt_ynh_local_curl -n -m GET -u admin -p "$password_couchdb_admin" \ local couchdb_user_revision=$( flohmarkt_ynh_local_curl -n -m GET -u admin -p "$password_couchdb_admin" \
"http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}" | jq -r ._rev ) "http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}" | jq -r ._rev )
if [[ -v ${couchdb_user_revision} ]] && [[ -n ${couchdb_user_revision} ]]; then if [[ -v couchdb_user_revision ]] && [[ -n "${couchdb_user_revision}" ]]; then
flohmarkt_ynh_local_curl -n -m DELETE -u admin -p ${password_couchdb_admin} -l '"ok":true' \ flohmarkt_ynh_local_curl -n -m DELETE -u admin -p ${password_couchdb_admin} -l '"ok":true' \
"http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}?rev=${couchdb_user_revision}" "http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}?rev=${couchdb_user_revision}"
else else