folder fix
This commit is contained in:
parent
77d362211d
commit
382219e6fe
1 changed files with 1 additions and 2 deletions
|
@ -89,9 +89,7 @@
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p /var/lib/u
|
|
||||||
mkdir -p /var/lib/u/files
|
mkdir -p /var/lib/u/files
|
||||||
chown -R ${cfg.user}:${cfg.group} /var/lib/u
|
|
||||||
|
|
||||||
cat > /var/lib/u/.env <<EOF
|
cat > /var/lib/u/.env <<EOF
|
||||||
DATABASE_URL="sqlite:/var/lib/u/u.db"
|
DATABASE_URL="sqlite:/var/lib/u/u.db"
|
||||||
|
@ -118,6 +116,7 @@
|
||||||
users = mkIf (cfg.user == "u") {
|
users = mkIf (cfg.user == "u") {
|
||||||
u = {
|
u = {
|
||||||
home = "/var/lib/u";
|
home = "/var/lib/u";
|
||||||
|
createHome = true;
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue