Rsyslog: add first run wizard configuration menu

This commit is contained in:
James Millar 2016-09-07 19:37:42 -04:00
parent d659163838
commit 86887b7fe1
4 changed files with 14 additions and 1 deletions

View File

@ -5,3 +5,6 @@
- Add RELP Protocol - Add RELP Protocol
- Add ability to compress messages using TCP/UDP protocols - Add ability to compress messages using TCP/UDP protocols
- Update configuration files using newer standards - Update configuration files using newer standards
8.0.102
- Add first run wizard configuration menu

View File

@ -18,7 +18,7 @@
PKG_NAME="rsyslog" PKG_NAME="rsyslog"
PKG_VERSION="8.21.0" PKG_VERSION="8.21.0"
PKG_REV="101" PKG_REV="102"
PKG_ARCH="any" PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://github.com/rsyslog" PKG_SITE="https://github.com/rsyslog"

View File

@ -20,6 +20,7 @@ import subprocess
import xbmc import xbmc
import xbmcaddon import xbmcaddon
ADDON = xbmcaddon.Addon()
class Monitor(xbmc.Monitor): class Monitor(xbmc.Monitor):
@ -32,4 +33,12 @@ class Monitor(xbmc.Monitor):
if __name__ == "__main__": if __name__ == "__main__":
if ADDON.getSetting('RSYSLOG_WIZARD') == 'true':
try:
ADDON.openSettings(id)
ADDON.setSetting('RSYSLOG_WIZARD', 'false')
except:
pass
Monitor().waitForAbort() Monitor().waitForAbort()

View File

@ -5,6 +5,7 @@
<setting id="RSYSLOG_MANUAL" value="false"/> <setting id="RSYSLOG_MANUAL" value="false"/>
<setting id="RSYSLOG_PORT" value="514"/> <setting id="RSYSLOG_PORT" value="514"/>
<setting id="RSYSLOG_PROTOCOL" value="UDP"/> <setting id="RSYSLOG_PROTOCOL" value="UDP"/>
<setting id="RSYSLOG_WIZARD" value="true"/>
<setting id="RSYSLOG_ZLIB_COMPRESSION" value="false" /> <setting id="RSYSLOG_ZLIB_COMPRESSION" value="false" />
<setting id="RSYSLOG_ZLIB_COMPRESSION_LEVEL" value="0" /> <setting id="RSYSLOG_ZLIB_COMPRESSION_LEVEL" value="0" />
</settings> </settings>