We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f40739a + af072cf commit a9855afCopy full SHA for a9855af
nixos/modules/services/web-apps/nextcloud.nix
@@ -91,10 +91,10 @@ let
91
cd ${webroot}
92
sudo=exec
93
if [[ "$USER" != nextcloud ]]; then
94
- sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR --preserve-env=OC_PASS'
+ sudo='exec /run/wrappers/bin/sudo -u nextcloud'
95
fi
96
- export NEXTCLOUD_CONFIG_DIR="${datadir}/config"
97
- $sudo \
+ $sudo ${pkgs.coreutils}/bin/env \
+ NEXTCLOUD_CONFIG_DIR="${datadir}/config" \
98
${phpCli} \
99
occ "$@"
100
'';
0 commit comments