Prechádzať zdrojové kódy

Updated version number

TC pushbot 5 4 rokov pred
rodič
commit
97e0c52815

+ 1 - 1
main.flags.go

@@ -27,7 +27,7 @@ var subserviceBasePort = 12810            //Next subservice port
 
 // =========== SYSTEM BUILD INFORMATION ==============
 var build_version = "development"                      //System build flag, this can be either {development / production / stable}
-var internal_version = "0.1.114"                       //Internal build version, please follow git commit counter for setting this value. max value \[0-9].[0-9][0-9].[0-9][0-9][0-9]\
+var internal_version = "0.1.115"                       //Internal build version, please follow git commit counter for setting this value. max value \[0-9].[0-9][0-9].[0-9][0-9][0-9]\
 var deviceUUID string                                  //The device uuid of this host
 var deviceVendor = "IMUSLAB.INC"                       //Vendor of the system
 var deviceVendorURL = "http://imuslab.com"             //Vendor contact information

+ 4 - 4
mod/agi/agi.go

@@ -74,7 +74,7 @@ func NewGateway(option AgiSysInfo) (*Gateway, error) {
 	for _, script := range startupScripts {
 		scriptContentByte, _ := ioutil.ReadFile(script)
 		scriptContent := string(scriptContentByte)
-		log.Println("Gatewat script loaded (" + script + ")")
+		log.Println("[AGI] Gatewat script loaded (" + script + ")")
 		//Create a new vm for this request
 		vm := otto.New()
 
@@ -83,7 +83,7 @@ func NewGateway(option AgiSysInfo) (*Gateway, error) {
 
 		_, err := vm.Run(scriptContent)
 		if err != nil {
-			log.Println("AJI Load Failed: " + script + ". Skipping.")
+			log.Println("[AGI] Load Failed: " + script + ". Skipping.")
 			log.Println(err)
 			continue
 		}
@@ -108,7 +108,7 @@ func (g *Gateway) RunScript(script string) error {
 
 	_, err := vm.Run(script)
 	if err != nil {
-		log.Println("Script Execution Failed: ", err.Error())
+		log.Println("[AGI] Script Execution Failed: ", err.Error())
 		return err
 	}
 
@@ -127,7 +127,7 @@ func (g *Gateway) RegisterLib(libname string, entryPoint AgiLibIntergface) error
 }
 
 func (g *Gateway) raiseError(err error) {
-	log.Println("*AGI Engine* [Runtime Error] " + err.Error())
+	log.Println("[AGI] Runtime Error " + err.Error())
 
 	//To be implemented
 }

+ 2 - 2
mod/disk/hybridBackup/hybridBackup.go

@@ -132,7 +132,7 @@ func (m *Manager) AddTask(newtask *BackupTask) error {
 	//Start the task
 	m.StartTask(newtask.JobName)
 
-	log.Println(">>>> [Debug] New Backup Tasks added: ", newtask.JobName, newtask)
+	//log.Println(">>>> [Debug] New Backup Tasks added: ", newtask.JobName, newtask)
 
 	return nil
 }
@@ -247,7 +247,7 @@ func (m *Manager) HandleRestore(restoreDiskID string, targetFileRelpath string,
 	}
 
 	//Check if source exists and target not exists
-	log.Println("[debug]", backupTask)
+	//log.Println("[debug]", backupTask)
 
 	restoreSource := filepath.Join(backupTask.DiskPath, targetFileRelpath)
 	if backupTask.Mode == "basic" || backupTask.Mode == "nightly" {

+ 1 - 1
mod/time/scheduler/scheduler.go

@@ -84,7 +84,7 @@ func NewScheduler(userHandler *user.UserHandler, gateway *agi.Gateway, cronfile
 		}
 		stopChannel := thisScheduler.createTicker(1 * time.Minute)
 		thisScheduler.ticker = stopChannel
-		log.Println("Emulated Crontab Started - Scheduling Tasks")
+		log.Println("ArozOS System Scheduler Started")
 	}()
 
 	//Return the crontask

+ 1 - 1
subservice.go

@@ -65,7 +65,7 @@ func SubserviceInit() {
 	//Scan and load all subservice modules
 	subservices, _ := filepath.Glob("./subservice/*")
 	for _, servicePath := range subservices {
-		if !fileExists(servicePath + "/.disabled") {
+		if IsDir(servicePath) && !fileExists(servicePath+"/.disabled") {
 			//Only enable module with no suspended config file
 			ssRouter.Launch(servicePath, true)
 		}