Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

repair the error of version number display after successful update (#805)

linkb9946db8542c
diff --git a/service/system.go b/service/system.go
index bc3c076..1986745 100644
--- a/service/system.go
+++ b/service/system.go
@@ -232,6 +232,8 @@ func (c *systemService) GetNet(physics bool) []string {
}
func (s *systemService) UpdateSystemVersion(version string) {
+ keyName := "casa_version"
+ Cache.Delete(keyName)
if file.Exists(config.AppInfo.LogPath + "/upgrade.log") {
os.Remove(config.AppInfo.LogPath + "/upgrade.log")
}