git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #89762 from nlewo/nextcloud-oc_pass

nixos/nextcloud: preserve OC_PASS env variable in the occ wrapper

commitb56c66e7e8565b16a4964840ef40243e07f78e84 authorFlorian Klink <flokli@flokli.de> dateMon 8 Jun 2020, 10:57 (6 years ago) parent3590f02cb68231
1 file changed+1−1
nixos/modules/services/web-apps/nextcloud.nix+1−1
nixos/modules/services/web-apps/nextcloud.nix+1−1
@@ -34,7 +34,7 @@ let
3434 cd ${cfg.package}
3535 sudo=exec
3636 if [[ "$USER" != nextcloud ]]; then
37− sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR'
37+ sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR --preserve-env=OC_PASS'
3838 fi
3939 export NEXTCLOUD_CONFIG_DIR="${cfg.home}/config"
4040 $sudo \