mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
system/setting_helpers.cpp: use CONFIGDIR to remove xml/conf files
This commit is contained in:
@@ -467,7 +467,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
if(delete_all) {
|
if(delete_all) {
|
||||||
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.conf");
|
my_system("/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.conf");
|
||||||
CServiceManager::getInstance()->SatelliteList().clear();
|
CServiceManager::getInstance()->SatelliteList().clear();
|
||||||
CZapit::getInstance()->LoadSettings();
|
CZapit::getInstance()->LoadSettings();
|
||||||
CZapit::getInstance()->GetConfig(zapitCfg);
|
CZapit::getInstance()->GetConfig(zapitCfg);
|
||||||
@@ -487,7 +487,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
|||||||
CFrameBuffer::getInstance()->Clear();
|
CFrameBuffer::getInstance()->Clear();
|
||||||
}
|
}
|
||||||
if(delete_chan) {
|
if(delete_chan) {
|
||||||
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.xml");
|
my_system("/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.xml");
|
||||||
g_Zapit->reinitChannels();
|
g_Zapit->reinitChannels();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user