fix ownership and mode of copied-over (config) files

These files need to be owned by the copying user instead of the Nix store permissions.
install takes care of that.
This commit is contained in:
Trolli Schmittlauch 2021-02-07 19:59:57 +01:00
parent e6fec8642a
commit 8ecde56247

View file

@ -300,10 +300,10 @@ in
# seafile.conf generation # seafile.conf generation
# move config templates from nix store # move config templates from nix store
cp ${ccnetConfigFile} ./conf/ccnet.conf ${pkgs.coreutils}/bin/install ${ccnetConfigFile} ./conf/ccnet.conf
cp ${seafileConfigFile} ./conf/seafile.conf ${pkgs.coreutils}/bin/install ${seafileConfigFile} ./conf/seafile.conf
cp ${gunicornConfigFile} ./conf/gunicorn.conf.py ${pkgs.coreutils}/bin/install ${gunicornConfigFile} ./conf/gunicorn.conf.py
cp ${seahubConfigFile} ./conf/seahub_settings.py ${pkgs.coreutils}/bin/install ${seahubConfigFile} ./conf/seahub_settings.py
# seahub secret key # seahub secret key
if [ ! -e .seahubSecret ]; then if [ ! -e .seahubSecret ]; then
@ -334,7 +334,7 @@ in
ln -nsf ${pkgs.seafile-server} seafile-server ln -nsf ${pkgs.seafile-server} seafile-server
# for determining update version mismatches # for determining update version mismatches
cp ${pkgs.seafile-server}/installed_version . ${pkgs.coreutils}/bin/install ${pkgs.seafile-server}/installed_version .
''}") ''}")
]; ];
User = cfg.user; User = cfg.user;