1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

added deps for activation scripts of backup modules

svn path=/nixos/trunk/; revision=17714
This commit is contained in:
Rob Vermaas 2009-10-08 09:29:16 +00:00
parent 8d9c51a991
commit 81e37d8475
3 changed files with 6 additions and 6 deletions

View file

@ -55,10 +55,10 @@ in
systemCronJobs = map mysqlBackupCron config.services.mysqlBackup.databases;
};
system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry ''
system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.fullDepEntry ''
mkdir -m 0700 -p ${config.services.mysqlBackup.location}
chown mysql ${config.services.mysqlBackup.location}
'';
'' [ "stdio" "defaultPath" "systemConfig" "users" ];
};
}

View file

@ -56,10 +56,10 @@ in
systemCronJobs = map postgresqlBackupCron config.services.postgresqlBackup.databases;
};
system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry ''
system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.fullDepEntry ''
mkdir -m 0700 -p ${config.services.postgresqlBackup.location}
chown root ${config.services.postgresqlBackup.location}
'';
'' [ "stdio" "defaultPath" "systemConfig" "users" ];
};
}

View file

@ -68,7 +68,7 @@ in
system.activationScripts.sitecopyBackup =
pkgs.stringsWithDeps.noDepEntry ''
pkgs.stringsWithDeps.fullDepEntry ''
mkdir -m 0700 -p ${stateDir}
chown root ${stateDir}
touch ${stateDir}/sitecopy.secrets
@ -99,7 +99,7 @@ in
'' ) config.services.sitecopy.backups
)}
'';
'' [ "stdio" "defaultPath" "systemConfig" "users" ] ;
};
}