~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-config

Move the forum secret out of the main configuration file and into the forum
plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
349
349
    # Write ./etc/ivle.conf (even if we loaded from a different filename)
350
350
    conf.filename = conffile
351
351
    conf.initial_comment = ["# IVLE Configuration File"]
352
 
 
353
 
    try:
354
 
        conf['plugins']['forum']['secret']
355
 
    except KeyError:
356
 
        # Generate the forum secret.
357
 
        forum_secret = hashlib.md5(uuid.uuid4().bytes).hexdigest()
358
 
        conf['plugins']['forum']['secret'] = forum_secret
359
 
 
360
352
    conf.write()
361
353
 
362
354
    # We need to restrict permissions on a new file, as it contains