Configuring Workging Directory #2724
Tim Schneider opened 2 months ago

Hi,

i am currently trying to package onedev for nixos. I don't expect any help as nixos is not officially supported, but your help would be greatly appreciated if possible. The main issue with packaging for nixos is that onedev tries to write to it's install folder, which under nixos is insed the nix store and readonly. I would simply need a configuration option to change the path where onedev tries to write to but i can't figure out a way to do it.

The Error message that i get is the following:

./result/bin/onedev
--> Wrapper Started as Console
Java Service Wrapper Standard Edition 64-bit 3.5.51
  Copyright (C) 1999-2022 Tanuki Software, Ltd. All Rights Reserved.
    http://wrapper.tanukisoftware.com
  Licensed to OneDev for Service Wrapping

Launching a JVM...
WrapperManager: Initializing...
Unable to write test file. Make sure current user owns everything under '/nix/store/rz1p9acxpm945crk5y6fd6a08bv6jxjc-onedev-latest/opt/onedev'
<-- Wrapper Stopped

I just want to change this path to something else: Unable to write test file. Make sure current user owns everything under '/nix/store/rz1p9acxpm945crk5y6fd6a08bv6jxjc-onedev-latest/opt/onedev'

Like for example /opt/onedev/ .

If you could spare the time help would be greatly appreciated, and i hope i am not wasting your time. I would love to provide a pr that fixes the problem but for now i can't find the line of code where the Error message is printed, if that's all that you have time for to provide that would be a great starting point for me.

Thank you very much Tim Schneider

1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2724
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover