-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch branches * update user interface * switch branch * switch branch * change branch * submit 0.3.3 * Update UI * update version function * Update UI * Update user.go * update disk * update person info interface * Update main.go * Update UI * update alpha * updata ui * Update assist.sh * Update assist.sh * update update function * add upload sh * Update init.go * upload shell script * Update system.go * update update.sh * Update init.go * update update.sh * update update.sh * Update update.sh * Update system.go * Update system.go * update UI * Update CHANGELOG.md
- Loading branch information
Showing
23 changed files
with
548 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-06-27 11:37:26 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-27 16:57:38 | ||
* @LastEditTime: 2022-06-30 14:16:31 | ||
* @FilePath: /CasaOS/alpha.md | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -17,7 +17,7 @@ There is a risk of data loss in non-release versions, so please be careful to ba | |
|
||
## Install/Update | ||
|
||
``` curl -fsSL https://get.casaos.io/casaos_new.sh | bash -v v0.3.3-alpha ``` | ||
``` curl -fsSL https://get.casaos.io | bash -v v0.3.3-alpha ``` | ||
|
||
## Check change log | ||
|
||
|
@@ -27,7 +27,9 @@ There is a risk of data loss in non-release versions, so please be careful to ba | |
|
||
[Design drawings](https://www.figma.com/file/pvlGobvuWEvbCb3GLqXfim/CasaOS-V0.3.3) | ||
|
||
## 提交issue 需要打标签 | ||
## Feedback questions | ||
|
||
Go [here]() to give feedback on your question, note that try to match the picture or video | ||
|
||
|
||
## Retest after update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-05-13 18:15:46 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-22 15:24:01 | ||
* @LastEditTime: 2022-06-29 14:29:34 | ||
* @FilePath: /CasaOS/pkg/utils/version/version.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -39,6 +39,9 @@ func IsNeedUpdate(version model.Version) (bool, model.Version) { | |
if a > b { | ||
return true, version | ||
} | ||
if a < b { | ||
return false, version | ||
} | ||
} | ||
return false, version | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
/* | ||
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-07-01 15:11:36 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-07-01 15:16:00 | ||
* @FilePath: /CasaOS/route/periodical.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
* Copyright (c) 2022 by icewhale, All Rights Reserved. | ||
*/ | ||
/* | ||
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-05-27 15:55:36 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-24 17:18:46 | ||
* @LastEditTime: 2022-06-29 16:47:19 | ||
* @FilePath: /CasaOS/route/periodical.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -96,16 +106,16 @@ func SendDiskBySocket() { | |
findSystem += 1 | ||
continue | ||
} | ||
if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" { | ||
if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") { | ||
temp := service.MyService.Disk().SmartCTL(list[i].Path) | ||
if reflect.DeepEqual(temp, model.SmartctlA{}) { | ||
continue | ||
healthy = true | ||
} else { | ||
healthy = temp.SmartStatus.Passed | ||
} | ||
|
||
//list[i].Temperature = temp.Temperature.Current | ||
if !temp.SmartStatus.Passed { | ||
healthy = false | ||
} | ||
|
||
if len(list[i].Children) > 0 { | ||
for _, v := range list[i].Children { | ||
s, _ := strconv.ParseUint(v.FSSize, 10, 64) | ||
|
@@ -219,15 +229,12 @@ func SendAllHardwareStatusBySocket() { | |
findSystem += 1 | ||
continue | ||
} | ||
if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" { | ||
if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") { | ||
temp := service.MyService.Disk().SmartCTL(list[i].Path) | ||
if reflect.DeepEqual(temp, model.SmartctlA{}) { | ||
continue | ||
} | ||
|
||
//list[i].Temperature = temp.Temperature.Current | ||
if !temp.SmartStatus.Passed { | ||
healthy = false | ||
healthy = true | ||
} else { | ||
healthy = temp.SmartStatus.Passed | ||
} | ||
if len(list[i].Children) > 0 { | ||
for _, v := range list[i].Children { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,3 @@ | ||
#!/bin/bash | ||
### | ||
# @Author: LinkLeong [email protected] | ||
# @Date: 2022-02-17 18:53:29 | ||
# @LastEditors: LinkLeong | ||
# @LastEditTime: 2022-06-27 14:14:26 | ||
# @FilePath: /CasaOS/shell/assist.sh | ||
# @Description: | ||
# @Website: https://www.casaos.io | ||
# Copyright (c) 2022 by icewhale, All Rights Reserved. | ||
### | ||
|
||
|
||
|
||
# add in v0.2.5 | ||
|
||
readonly CASA_DEPANDS="curl smartmontools parted fdisk ntfs-3g" | ||
|
||
version_0_2_5() { | ||
install_depends "$CASA_DEPANDS" | ||
} | ||
version_0_2_11() { | ||
sysctl -w net.core.rmem_max=2500000 | ||
} | ||
|
||
#Install Depends | ||
install_depends() { | ||
((EUID)) && sudo_cmd="sudo" | ||
if [[ ! -x "$(command -v '$1')" ]]; then | ||
packagesNeeded=$1 | ||
if [ -x "$(command -v apk)" ]; then | ||
$sudo_cmd apk add --no-cache $packagesNeeded | ||
elif [ -x "$(command -v apt-get)" ]; then | ||
$sudo_cmd apt-get -y -q install $packagesNeeded | ||
elif [ -x "$(command -v dnf)" ]; then | ||
$sudo_cmd dnf install $packagesNeeded | ||
elif [ -x "$(command -v zypper)" ]; then | ||
$sudo_cmd zypper install $packagesNeeded | ||
fi | ||
fi | ||
} | ||
|
||
mvfoder() { | ||
#移动脚本 | ||
|
||
} | ||
|
||
version_0_2_5 | ||
|
||
version_0_2_11 |
Oops, something went wrong.