diff options
| author | ivan <ivan> | 2004-11-24 01:30:19 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2004-11-24 01:30:19 +0000 |
| commit | f35e156906cfabbc39f93ee4a82d4c28f79379b2 (patch) | |
| tree | e3a805cb9222c08f4498aec2c8a0d0422513f344 /FS | |
| parent | 40b96a0b17f9a8b5c2b910fce261fcdfd19f10a0 (diff) | |
fix perms on automated backups
Diffstat (limited to 'FS')
| -rwxr-xr-x | FS/bin/freeside-daily | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index 99d95d5d2..d8d36252e 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -81,9 +81,11 @@ if ( $dest ) { output => "/var/tmp/$database.gpg", recipient => $conf->config('dump-pgpid'), ); + chmod 0600, '/var/tmp/$database.gpg'; scp("/var/tmp/$database.gpg", $dest); unlink "/var/tmp/$database.gpg" or die $!; } else { + chmod 0600, '/var/tmp/$database.sql'; scp("/var/tmp/$database.sql", $dest); } unlink "/var/tmp/$database.sql" or die $!; |
