Skip to content

Commit 7e83a61

Browse files
committed
[backend] Fix installation path for user with low priviledges (#3833)
1 parent 30c42de commit 7e83a61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openbas-api/src/main/java/io/openbas/service/EndpointService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ public class EndpointService {
5555
public static final String OPENBAS_AGENT_UPGRADE = "openbas-agent-upgrade";
5656
public static final String SERVICE = "service";
5757
public static final String SERVICE_USER = "service-user";
58-
public static final String SESSION_USER = "sessions-user";
58+
public static final String SESSION_USER = "session-user";
5959

6060
public static String JFROG_BASE = "https://filigran.jfrog.io/artifactory";
6161

6262
public static final String OPENBAS_INSTALL_DIR_WINDOWS_SERVICE =
6363
"C:\\Program Files (x86)\\Filigran\\OBAS Agent";
64-
public static final String OPENBAS_INSTALL_DIR_WINDOWS_SERVICE_USER = "C:\\Filigran";
65-
public static final String OPENBAS_INSTALL_DIR_WINDOWS_SESSION_USER = "C:\\Filigran";
64+
public static final String OPENBAS_INSTALL_DIR_WINDOWS_SERVICE_USER = "$HOME\\.openbas";
65+
public static final String OPENBAS_INSTALL_DIR_WINDOWS_SESSION_USER = "$HOME\\.openbas";
6666
public static final String OPENBAS_INSTALL_DIR_UNIX_SERVICE = "/opt/openbas-agent";
67-
public static final String OPENBAS_INSTALL_DIR_UNIX_SERVICE_USER = "/opt/openbas-agent-service";
67+
public static final String OPENBAS_INSTALL_DIR_UNIX_SERVICE_USER = ".local/openbas-agent-service";
6868
public static final String OPENBAS_INSTALL_DIR_UNIX_SESSION_USER = ".local/openbas-agent-session";
6969

7070
public static final String OPENBAS_SERVICE_NAME_WINDOWS_SERVICE = "OBASAgentService";

0 commit comments

Comments
 (0)