Skip to content

please fix database file write to /opt/soar (i checked folder and there isn't /opt/soar/db/soar.db) (and fix package installation problem to /opt/soar) #191

Description

@Lobanokivan11

Problem

sudo soar sync --system
⠂ soarpkgs: writing db soar::error

× opening core database (readonly): Unable to open the database file

Soar fails to create soar.db in /opt/soar/db/ even when run as root. I fixed it by manually copying the DB file from my home directory, but the app should be able to create this file automatically without requiring user intervention.

Steps to reproduce

run sudo su
inside root shell run wget -qO- https://soar.qaidvoid.dev/install.sh | sh
add PATH export to /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/soar/bin"

exit root shell
run sudo soar update --system

Expected behavior

soarpkgs need to be updated on /opt/soar

Soar version (soar -V)

soar-cli 0.13.0

Operating system (if issue is related to OS)

Ubuntu

Installation

github release

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions