Skip to content

Commit

Permalink
Merge pull request #120 from 45Drives/ncr_306843
Browse files Browse the repository at this point in the history
Ncr 306843
  • Loading branch information
joshuaboud authored Nov 15, 2024
2 parents 278fc89 + 3c8d8c5 commit 50208f8
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 21 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Cockpit File Sharing 4.2.5-2
## Cockpit File Sharing 4.2.6-1

* iscsi release
* Fix bug where only first instance of was inspected while looking for
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ sudo apt install cockpit-file-sharing
### Direct from .deb
Installing this way may work for other versions of Ubuntu and Debian, but it is unsupported. You won't get automatic updates this way.
```bash
curl -LO https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.1.0/cockpit-file-sharing_4.1.0-1focal_all.deb
sudo apt install ./cockpit-file-sharing_4.1.0-1focal_all.deb
curl -LO https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.2.6/cockpit-file-sharing_4.2.6-1focal_all.deb
sudo apt install ./cockpit-file-sharing_4.2.6-1focal_all.deb
```
## Rocky 8
### From 45Drives Repo (Recommended, Rocky 8 only)
Expand All @@ -51,7 +51,7 @@ sudo dnf install cockpit-file-sharing
Installing this way may work for other versions of Rocky/Centos/RHEL/Fedora/etc, but it is unsupported. You won't get automatic updates this way.
```bash
# dnf or yum
sudo dnf install https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.1.0/cockpit-file-sharing-4.1.0-1.el8.noarch.rpm
sudo dnf install https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.2.6/cockpit-file-sharing-4.2.6-1.el8.noarch.rpm
```
## Generic Installation
1. Install Dependencies
Expand Down Expand Up @@ -81,9 +81,9 @@ samba-common-tools
```
2. Download pre-built archive and install
```bash
curl -LO https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.1.0/cockpit-file-sharing_4.1.0_generic.zip
unzip cockpit-file-sharing_4.1.0_generic.zip
cd cockpit-file-sharing_4.1.0_generic
curl -LO https://github.com/45Drives/cockpit-file-sharing/releases/download/v4.2.6/cockpit-file-sharing_4.2.6_generic.zip
unzip cockpit-file-sharing_4.2.6_generic.zip
cd cockpit-file-sharing_4.2.6_generic
# no need to run `make` first, the plugin is pre-built
sudo make install
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
</template>

<script setup lang="ts">
import ByteInput from "@45drives/houston-common/houston-common-ui/lib/components/ByteInput.vue";
import { Pool } from "@/tabs/iSCSI/types/cluster/Pool";
import type { ISCSIDriverClusteredServer } from "@/tabs/iSCSI/types/drivers/ISCSIDriverClusteredServer";
import type { ProcessError } from "@45drives/houston-common-lib";
Expand All @@ -91,6 +90,7 @@ import {
validationSuccess,
validationError,
wrapActions,
ByteInput,
} from "@45drives/houston-common-ui";
import { ok, ResultAsync, safeTry } from "neverthrow";
import { inject, ref, type Ref } from "vue";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
<script setup lang="ts">
import { RadosBlockDevice } from "@/tabs/iSCSI/types/cluster/RadosBlockDevice";
import { LogicalVolume } from "@/tabs/iSCSI/types/cluster/LogicalVolume";
import { CardContainer, InputLabelWrapper, useTempObjectStaging, validationError, ValidationResultView, ValidationScope, validationSuccess, wrapActions } from "@45drives/houston-common-ui";
import { CardContainer, InputLabelWrapper, useTempObjectStaging, validationError, ValidationResultView, ValidationScope, validationSuccess, wrapActions, ByteInput } from "@45drives/houston-common-ui";
import { ResultAsync, okAsync } from "neverthrow";
import ByteInput from "@45drives/houston-common/houston-common-ui/lib/components/ByteInput.vue";
import { inject, ref } from "vue";
import type { ISCSIDriverClusteredServer } from "@/tabs/iSCSI/types/drivers/ISCSIDriverClusteredServer";
import type { ProcessError } from "@45drives/houston-common-lib";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ import {
CardContainer, InputLabelWrapper, pushNotification, Notification, useTempObjectStaging, validationError, ValidationResultView,
ValidationScope,
validationSuccess,
wrapActions
wrapActions,
ByteInput,
} from "@45drives/houston-common-ui";
import ByteInput from "@45drives/houston-common/houston-common-ui/lib/components/ByteInput.vue";
import { ref } from "vue";
const _ = cockpit.gettext;
Expand Down Expand Up @@ -80,4 +80,4 @@ const { validationResult: fileSizeValidationResult } = validationScope.useValida
return validationSuccess();
});
</script>
</script>
4 changes: 2 additions & 2 deletions file-sharing/src/tabs/samba/samba-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export class SambaManager implements ISambaManager {
return new File(this.server, smbConfPath)
.assertExists()
.andThen((smbConf) => smbConf.read())
.andThen(IniSyntax({ duplicateKey: "ignore" }).apply)
.map((smbConf) => smbConf.global?.include === "registry");
.andThen(IniSyntax({ duplicateKey: "append" }).apply)
.map((smbConf) => [smbConf.global?.include ?? []].flat().includes("registry"));
}

patchSmbConfIncludeRegistry(smbConfPath: string) {
Expand Down
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "cockpit-file-sharing",
"title": "Cockpit File Sharing",
"prerelease": false,
"version": "4.2.5",
"buildVersion": "2",
"version": "4.2.6",
"buildVersion": "1",
"author": "Josh Boudreau <[email protected]>",
"url": "https://github.com/45Drives/cockpit-file-sharing",
"category": "utils",
Expand Down Expand Up @@ -65,8 +65,8 @@
],
"changelog": {
"urgency": "medium",
"version": "4.2.5",
"buildVersion": "2",
"version": "4.2.6",
"buildVersion": "1",
"ignore": [],
"date": null,
"packager": "Josh Boudreau <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ make DESTDIR=%{buildroot} install
/usr/share/cockpit/file-sharing/*

%changelog
* Fri Nov 15 2024 Joshua Boudreau <[email protected]> 4.2.6-1
- Fix bug where only first instance of was inspected while looking for
* Thu Oct 31 2024 Josh Boudreau <[email protected]> 4.2.5-2
- iscsi release
* Mon Oct 28 2024 Brandon Kelly <[email protected]> 4.2.5-1
Expand Down
6 changes: 6 additions & 0 deletions packaging/focal/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
cockpit-file-sharing (4.2.6-1focal) focal; urgency=medium

* Fix bug where only first instance of was inspected while looking for

-- Joshua Boudreau <[email protected]> Fri, 15 Nov 2024 12:22:25 -0400

cockpit-file-sharing (4.2.5-2focal) focal; urgency=medium

* iscsi release
Expand Down

0 comments on commit 50208f8

Please sign in to comment.