File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/Curtis-Milo/nat-type-identifier-go v0.0.0-20220215191915-18d42168c63d
7
- github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha2
7
+ github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha3
8
8
github.com/benbjohnson/clock v1.3.0 // indirect
9
9
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
10
10
github.com/disintegration/imaging v1.6.2
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0
3
3
github.com/BurntSushi/toml v1.2.0 /go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ =
4
4
github.com/Curtis-Milo/nat-type-identifier-go v0.0.0-20220215191915-18d42168c63d h1:62lEBImTxZ83pgzywgDNIrPPuQ+j4ep9QjqrWBn1hrU =
5
5
github.com/Curtis-Milo/nat-type-identifier-go v0.0.0-20220215191915-18d42168c63d /go.mod h1:lW9x+yEjqKdPbE3+cf2fGPJXCw/hChX3Omi9QHTLFsQ =
6
- github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha2 h1:O6vDvIy+wFBj6DuUN4ZDLa6M7Cg80SXXpMsM9t2EqpA =
7
- github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha2 /go.mod h1:xcemiRsXcs1zrmQxYMyExDjZ7UHYwkJqYE71IDIV0xA =
6
+ github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha3 h1:jQfIty6u06fPJCutpS+97qr8uho3RpQX+B/CwHPCv/Q =
7
+ github.com/IceWhaleTech/CasaOS-Common v0.4.1-alpha3 /go.mod h1:xcemiRsXcs1zrmQxYMyExDjZ7UHYwkJqYE71IDIV0xA =
8
8
github.com/andybalholm/brotli v1.0.1 h1:KqhlKozYbRtJvsPrrEeXcO+N2l6NYT5A2QAFmSULpEc =
9
9
github.com/andybalholm/brotli v1.0.1 /go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y =
10
10
github.com/benbjohnson/clock v1.1.0 /go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA =
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ import (
13
13
"strings"
14
14
"time"
15
15
16
+ "github.com/IceWhaleTech/CasaOS-Common/utils/file"
16
17
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
17
18
"github.com/IceWhaleTech/CasaOS/model"
18
19
"github.com/IceWhaleTech/CasaOS/pkg/config"
19
20
command2 "github.com/IceWhaleTech/CasaOS/pkg/utils/command"
20
21
"github.com/IceWhaleTech/CasaOS/pkg/utils/common_err"
21
- "github.com/IceWhaleTech/CasaOS/pkg/utils/file"
22
+
22
23
"github.com/shirou/gopsutil/v3/cpu"
23
24
"github.com/shirou/gopsutil/v3/disk"
24
25
"github.com/shirou/gopsutil/v3/host"
@@ -242,7 +243,8 @@ func (s *systemService) UpdateSystemVersion(version string) {
242
243
if len (config .ServerInfo .UpdateUrl ) > 0 {
243
244
go command2 .OnlyExec ("curl -fsSL " + config .ServerInfo .UpdateUrl + " | bash" )
244
245
} else {
245
- go command2 .OnlyExec ("curl -fsSL https://get.casaos.io/update | bash" )
246
+ osRelease , _ := file .ReadOSRelease ()
247
+ go command2 .OnlyExec ("curl -fsSL https://get.casaos.io/update?t=" + osRelease ["MANUFACTURER" ] + " | bash" )
246
248
}
247
249
248
250
// s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)
You can’t perform that action at this time.
0 commit comments