Changeset 43508 for titan/titan


Ignore:
Timestamp:
02/15/19 19:12:09 (5 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r43506 r43508  
    254254                                                cmd = ostrcat(cmd, " release atemio.dyndns.tv", 1, 0);
    255255#endif
     256#ifdef OEBUILD
     257                                        if(file_exist("/media/hdd/.update"))
     258                                        {
     259                                                if(!file_exist("/media/hdd/.update/logs"))
     260                                                         mkdir("/media/hdd/.update/logs", 777);
     261                                       
     262                                                if(file_exist("/media/hdd/.update/logs"))
     263                                                        cmd = ostrcat(cmd, " > /media/hdd/.update/logs/update_debug.log 2>&1", 1, 0);           
     264                                        }
     265                                        else if(file_exist("/var/backup/.update"))
     266                                        {
     267                                                if(!file_exist("/var/backup/.update/logs"))
     268                                                         mkdir("/var/backup/.update/logs", 777);
     269                                       
     270                                                if(file_exist("/var/backup/.update/logs"))
     271                                                        cmd = ostrcat(cmd, " > /var/backup/.update/logs/update_debug.log 2>&1", 1, 0);         
     272                                        }
     273                                        else if(file_exist("/var/swap/.update"))
     274                                        {
     275                                                if(!file_exist("/var/swap/.update/logs"))
     276                                                         mkdir("/var/swap/.update/logs", 777);
     277                                       
     278                                                if(file_exist("/var/swap/.update/logs"))
     279                                                        cmd = ostrcat(cmd, " > /var/swap/.update/logs/update_debug.log 2>&1", 1, 0);           
     280                                        }
     281
     282#else
    256283                                        if(file_exist("/var/swap"))
    257284                                        {
     
    259286                                                         mkdir("/var/swap/logs", 777);
    260287                                       
    261                                                 if(file_exist("/etc/.test") && file_exist("/etc/.beta") && file_exist("/var/swap/logs"))
     288                                                if(file_exist("/etc/.beta") && file_exist("/var/swap/logs"))
    262289                                                        cmd = ostrcat(cmd, " > /var/swap/logs/update_debug.log 2>&1", 1, 0);           
    263290                                        }
     
    270297                                                        cmd = ostrcat(cmd, " > /mnt/logs/update_debug.log 2>&1", 1, 0);
    271298                                        }
    272 
     299#endif
    273300                                        if(ostrstr(filelist->select->text, "_FULL_") != NULL)
    274301                                                msgtxt = ostrcat(msgtxt, _("starting Full Update ?"), 1, 0);
Note: See TracChangeset for help on using the changeset viewer.