diff options
| author | Stig Thormodsrud <stig@vyatta.com> | 2010-11-07 09:57:02 -0800 |
|---|---|---|
| committer | Stig Thormodsrud <stig@vyatta.com> | 2010-11-07 09:57:02 -0800 |
| commit | 6fc14cb44822647f3db50b69ba919e66113fa187 (patch) | |
| tree | 4956b1b74e91182aacdcd5496e280428ed527337 /scripts/vyatta-commit-revs.pl | |
| parent | 821adf0018252413e26357dc1e6c75001e9ea753 (diff) | |
| download | vyatta-config-mgmt-6fc14cb44822647f3db50b69ba919e66113fa187.tar.gz vyatta-config-mgmt-6fc14cb44822647f3db50b69ba919e66113fa187.zip | |
Fix permissions problems when user isn't vyatta.
Diffstat (limited to 'scripts/vyatta-commit-revs.pl')
| -rwxr-xr-x | scripts/vyatta-commit-revs.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-commit-revs.pl b/scripts/vyatta-commit-revs.pl index 7749a52..76937d1 100755 --- a/scripts/vyatta-commit-revs.pl +++ b/scripts/vyatta-commit-revs.pl @@ -35,7 +35,6 @@ use lib '/opt/vyatta/share/perl5/'; use Vyatta::Config; use Vyatta::ConfigMgmt; use File::Compare; -use File::Copy; # # main @@ -56,7 +55,7 @@ system("$cmd > $tmp_config_file"); if (compare($tmp_config_file, $last_commit_file) == 0) { exit 0; } -move($tmp_config_file, "$archive_dir/config.boot"); +system("sudo mv $tmp_config_file $archive_dir/config.boot"); system("sudo logrotate -f -s $lr_state_file $lr_conf_file"); my ($user) = getpwuid($<); cm_commit_add_log($user, 'cli', $ARGV[0]); |
