summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakbackup
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2003-02-04 00:26:02 +0000
committerStew Benedict <stewb@mandriva.org>2003-02-04 00:26:02 +0000
commit971d41aa5957212c27c28200703e8d5e54b45a4e (patch)
treed68a4445bd1fc4ccaa12b0592f1a423d38d89ae3 /perl-install/standalone/drakbackup
parentebfb257036c0349a97ea12ee349b84ba7e3b1e17 (diff)
downloaddrakx-backup-do-not-use-971d41aa5957212c27c28200703e8d5e54b45a4e.tar
drakx-backup-do-not-use-971d41aa5957212c27c28200703e8d5e54b45a4e.tar.gz
drakx-backup-do-not-use-971d41aa5957212c27c28200703e8d5e54b45a4e.tar.bz2
drakx-backup-do-not-use-971d41aa5957212c27c28200703e8d5e54b45a4e.tar.xz
drakx-backup-do-not-use-971d41aa5957212c27c28200703e8d5e54b45a4e.zip
Use system configs when wrapped in mcc.
Diffstat (limited to 'perl-install/standalone/drakbackup')
-rwxr-xr-xperl-install/standalone/drakbackup5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakbackup b/perl-install/standalone/drakbackup
index cce16a67d..24a3eba35 100755
--- a/perl-install/standalone/drakbackup
+++ b/perl-install/standalone/drakbackup
@@ -257,7 +257,8 @@ my $vol_name = 'Drakbackup';
my $good_restore_path = 1;
# allow not-root user with own config
-if ($ENV{USER} ne 'root') {
+if ($ENV{HOME} ne '/root') {
+ standalone::explanations("Running as $ENV{USER}...");
$cfg_dir = "$user_home/.drakbackup/";
$save_path = $cfg_dir . "backups";
-d $save_path or mkdir_p $save_path;
@@ -4750,7 +4751,7 @@ N("Description:
Drakbackup allows you to restore your system to
a user selected directory.
- Per default all backup will be stored on your
+ Per default all backups will be stored on your
/var/lib/drakbackup directory
Configuration file: