[NixOS] Just run bucket mounting as root
This commit is contained in:
parent
5deba06fb0
commit
c25cd05b15
@ -48,7 +48,7 @@ in {
|
|||||||
"${pkgs.coreutils}/bin/chmod 0777 ${mount-path}"
|
"${pkgs.coreutils}/bin/chmod 0777 ${mount-path}"
|
||||||
];
|
];
|
||||||
# Use su to run the main command as the railbird user
|
# Use su to run the main command as the railbird user
|
||||||
ExecStart = "${pkgs.su}/bin/su -c '${pkgs.gcsfuse}/bin/gcsfuse --implicit-dirs --key-file ${config.age.secrets.api-service-key.path} ${bucket-name} ${mount-path}' railbird";
|
ExecStart = "${pkgs.gcsfuse}/bin/gcsfuse --implicit-dirs --key-file ${config.age.secrets.api-service-key.path} ${bucket-name} ${mount-path}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user