diff --git a/lemonldap-ng-common/scripts/lemonldap-ng-cli b/lemonldap-ng-common/scripts/lemonldap-ng-cli index e95b99a6f..8d92655ba 100755 --- a/lemonldap-ng-common/scripts/lemonldap-ng-cli +++ b/lemonldap-ng-common/scripts/lemonldap-ng-cli @@ -82,6 +82,7 @@ Update local configuration cache Save configuration $ lemonldap-ng-cli save >conf.json + $ lemonldap-ng-cli -cfgNum 19 save >conf-19.json Restore configuration diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm index e6cadc928..fa356fbeb 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Cli.pm @@ -200,7 +200,7 @@ sub lastCfg { sub save { my ($self) = @_; - my $conf = $self->jsonResponse( '/confs/latest', 'full=1' ); + my $conf = $self->jsonResponse( '/confs/' . $self->cfgNum, 'full=1' ); my $json = JSON->new->indent->canonical; print $json->encode($conf); }