ma owncloud: pkgs.nextcloud -> nextcloud

This commit is contained in:
makefu 2020-04-22 19:54:44 +02:00
parent 89cf2fdfa8
commit 3a378b3f78
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -15,6 +15,7 @@ with lib;
let let
# TODO: copy-paste from lass/2/websites/util.nix # TODO: copy-paste from lass/2/websites/util.nix
nextcloud = nextcloud18;
serveCloud = domains: serveCloud = domains:
let let
domain = head domains; domain = head domains;
@ -23,9 +24,9 @@ let
in { in {
system.activationScripts."prepare-nextcloud-${domain}" = '' system.activationScripts."prepare-nextcloud-${domain}" = ''
if test ! -e ${root} ;then if test ! -e ${root} ;then
echo "copying latest ${pkgs.nextcloud.name} release to ${root}" echo "copying latest ${nextcloud.name} release to ${root}"
mkdir -p $(dirname "${root}") mkdir -p $(dirname "${root}")
cp -r ${pkgs.nextcloud} "${root}" cp -r ${nextcloud} "${root}"
chown -R nginx:nginx "${root}" chown -R nginx:nginx "${root}"
chmod 770 "${root}" chmod 770 "${root}"
fi fi