/usr/bin/gozerbot-init is in gozerbot 0.99.1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/python
#
#
import sys, os
sys.path.insert(0, os.getcwd())
try:
from gozerbot.datadir import datadir, makedirs
makedirs()
from gozerbot.config import config, Config, mainconfigtxt, fleetbotconfigtxt
config.write_init(mainconfigtxt)
cfg = Config(datadir + os.sep + 'fleet' + os.sep + 'default', 'config', inittxt=fleetbotconfigtxt)
cfg.save()
cfg = Config(datadir + os.sep + 'fleet' + os.sep + 'jabber', 'config', inittxt=fleetbotconfigtxt)
cfg['name'] = "xmpp"
cfg['type'] = "xmpp"
cfg['enable']= 0
cfg.save()
except Exception, ex:
print ex
os._exit(1)
os._exit(0)
|