Skip to content

delete a user from command line ignores the -c switch with config file #17521

Closed
@mariuz

Description

@mariuz

Gitea Version

1.15.6

Git Version

git version 2.25.1

Operating System

ubuntu 20.04

How are you running Gitea?

i used the binary version with wget

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

create user from command line works ok and the website is ok , but the issues start when i try to delete a user

(ROOT = /home/git/gitea-repositories and works correctly)
so it tries to write in default folder and ignoring config file /etc/gitea/app.ini

gitea -c /etc/gitea/app.ini admin user delete --id 20

2021/11/02 11:46:42 ...s/storage/storage.go:171:initAttachments() [I] Initialising Attachment storage with type:
2021/11/02 11:46:42 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /usr/local/bin/data/attachments
2021/11/02 11:46:42 main.go:117:main() [F] Failed to run app with [gitea -c /etc/gitea/app.ini admin user delete --id 20]: mkdir /usr/local/bin/data: permission denied

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions