mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
2020-08-19 Fred Gleason <fredg@paravelsystems.com>
* Added a 'STATIONS.SSH_IDENTITY_FILE' field to the database. * Added a 'RECORDINGS.URL_USE_ID_FILE' field to the database. * Added a 'FEEDS.PURGE_USE_ID_FILE' field to the database. * Incremented the database version to 333. * Added 'RDStation::sshIdentityFile()' and 'RDStation::setSshIdentityFile()' methods. * Added 'RDRecording::urlUseIdFile()' and 'RDRecording::setUrlUseIdFile()' methods. * Added 'RDFeed::purgeUseIdFile()' and 'RDFeed::setPurgeUseIdFile()' methods. * Added a 'SSH Ident. File' control to the 'Host' dialog in rdadmin(1). * Added an 'Authenticate with local identity file' checkbox to the 'Feed' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -36,6 +36,7 @@ MainObject::MainObject(QObject *parent)
|
||||
username="";
|
||||
password="";
|
||||
RDDelete::ErrorCode conv_err;
|
||||
use_identity_file=false;
|
||||
|
||||
//
|
||||
// Open the Database
|
||||
@@ -58,6 +59,14 @@ MainObject::MainObject(QObject *parent)
|
||||
password=rda->cmdSwitch()->value(i);
|
||||
rda->cmdSwitch()->setProcessed(i,true);
|
||||
}
|
||||
if(rda->cmdSwitch()->key(i)=="--ssh-identity-filename") {
|
||||
ssh_identity_filename=rda->cmdSwitch()->value(i);
|
||||
rda->cmdSwitch()->setProcessed(i,true);
|
||||
}
|
||||
if(rda->cmdSwitch()->key(i)=="--use-identity-file") {
|
||||
use_identity_file=true;
|
||||
rda->cmdSwitch()->setProcessed(i,true);
|
||||
}
|
||||
if(rda->cmdSwitch()->key(i)=="--target-url") {
|
||||
target_url=QUrl(rda->cmdSwitch()->value(i));
|
||||
if(target_url.isRelative()) {
|
||||
@@ -96,7 +105,8 @@ MainObject::MainObject(QObject *parent)
|
||||
conv->setTargetUrl(target_url);
|
||||
printf("Deleting...\n");
|
||||
conv_err=conv->
|
||||
runDelete(username,password,rda->config()->logXloadDebugData());
|
||||
runDelete(username,password,ssh_identity_filename,use_identity_file,
|
||||
rda->config()->logXloadDebugData());
|
||||
printf("Result: %s\n",(const char *)RDDelete::errorText(conv_err));
|
||||
delete conv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user