Merge pull request #89762 from nlewo/nextcloud-oc_pass

nixos/nextcloud: preserve OC_PASS env variable in the occ wrapper
This commit is contained in:
Florian Klink 2020-06-08 10:57:49 +02:00 committed by GitHub
commit b56c66e7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ let
cd ${cfg.package}
sudo=exec
if [[ "$USER" != nextcloud ]]; then
sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR'
sudo='exec /run/wrappers/bin/sudo -u nextcloud --preserve-env=NEXTCLOUD_CONFIG_DIR --preserve-env=OC_PASS'
fi
export NEXTCLOUD_CONFIG_DIR="${cfg.home}/config"
$sudo \