summaryrefslogtreecommitdiff
path: root/rhimport.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport.pm')
-rw-r--r--rhimport.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/rhimport.pm b/rhimport.pm
index 7bc36cc..df67f74 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -35,6 +35,14 @@ my $ssh_key_file = "$ENV{'HOME'}/.rhimport/import.key";
my $ssh_dir = "/programm/.rhimport";
my $rdimport_wrapper = "/usr/local/bin/dropbox_newfile.pl";
+sub check_key_file
+{
+ if(-e "$ssh_key_file") {
+ return 1;
+ }
+ return 0;
+}
+
sub get_dropboxes
{
my ($dbh, $user) = @_;