diff --git a/build/sqled_with_dms.spec b/build/sqled_with_dms.spec index f4a1700cb8..8e57ee80cb 100644 --- a/build/sqled_with_dms.spec +++ b/build/sqled_with_dms.spec @@ -40,14 +40,14 @@ mkdir -p $RPM_BUILD_ROOT/usr/local/%{name}/bin mkdir -p $RPM_BUILD_ROOT/usr/local/%{name}/etc mkdir -p %{_builddir}/%{buildsubdir}/%{name}/plugins cp %{_builddir}/%{buildsubdir}/dms/config.yaml $RPM_BUILD_ROOT/usr/local/%{name}/etc/config.yaml -cp -r %{_builddir}/%{buildsubdir}/dms/build/logo $RPM_BUILD_ROOT/usr/local/%{name}/static/ +cp -R %{_builddir}/%{buildsubdir}/dms/build/logo $RPM_BUILD_ROOT/usr/local/%{name}/static/ cp %{_builddir}/%{buildsubdir}/%{name}/bin/sqled $RPM_BUILD_ROOT/usr/local/%{name}/bin/sqled cp %{_builddir}/%{buildsubdir}/%{name}/bin/scannerd $RPM_BUILD_ROOT/usr/local/%{name}/bin/scannerd cp %{_builddir}/%{buildsubdir}/%{name}/bin/dms $RPM_BUILD_ROOT/usr/local/%{name}/bin/dms cp -R %{_builddir}/%{buildsubdir}/%{name}/plugins $RPM_BUILD_ROOT/usr/local/%{name}/plugins cp -R %{_builddir}/%{buildsubdir}/%{name}/scripts $RPM_BUILD_ROOT/usr/local/%{name}/scripts cp %{_builddir}/%{buildsubdir}/dms/build/service-file-template/dms.systemd $RPM_BUILD_ROOT/usr/local/%{name}/scripts/dms.systemd -cp -R %{_builddir}/%{buildsubdir}/%{name}/static $RPM_BUILD_ROOT/usr/local/%{name}/static +cp -R %{_builddir}/%{buildsubdir}/%{name}/static/* $RPM_BUILD_ROOT/usr/local/%{name}/static/ ########## diff --git a/sqle/dms/instance.go b/sqle/dms/instance.go index cb76846f6e..03c3dbf93c 100644 --- a/sqle/dms/instance.go +++ b/sqle/dms/instance.go @@ -66,7 +66,7 @@ func getInstance(ctx context.Context, req dmsV1.ListDBServiceReq) (*model.Instan } if total == 0 { - return nil, false, nil + return &model.Instance{}, false, nil } instance, err := convertInstance(dbServices[0])