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:
parent
8d9c51a991
commit
81e37d8475
|
@ -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" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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" ] ;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue