Skip to content

Commit

Permalink
Merge pull request #321771 from Mynacol/nextcloud-preserveenv
Browse files Browse the repository at this point in the history
nixos/nextcloud: Remove --preserve-env in sudo
  • Loading branch information
Ma27 authored Jul 5, 2024
2 parents f40739a + af072cf commit a9855af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ let
cd ${webroot}
sudo=exec
if [[ "$USER" != nextcloud ]]; then
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'
fi
export NEXTCLOUD_CONFIG_DIR="${datadir}/config"
$sudo \
$sudo ${pkgs.coreutils}/bin/env \
NEXTCLOUD_CONFIG_DIR="${datadir}/config" \
${phpCli} \
occ "$@"
'';
Expand Down

0 comments on commit a9855af

Please sign in to comment.