mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Rename Plinth to FreedomBox in comments
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
2723822b71
commit
90f2117554
@ -65,8 +65,8 @@ def subcommand_setup(_):
|
||||
# enable mod_headers for HSTS
|
||||
webserver.enable('headers', kind='module')
|
||||
|
||||
# enable some critical modules to avoid restart while installing Plinth
|
||||
# applications.
|
||||
# enable some critical modules to avoid restart while installing
|
||||
# FreedomBox applications.
|
||||
webserver.enable('cgi', kind='module')
|
||||
webserver.enable('authnz_ldap', kind='module')
|
||||
|
||||
|
||||
@ -416,8 +416,9 @@ def _run_action(action, action_options=None):
|
||||
"""
|
||||
Run a specific action from another module, for the run_renew_hooks command.
|
||||
This function is a simplified version of plinth/actions.py, to enable
|
||||
somewhat safe calls of other actions from outside the Plinth process.
|
||||
The comments about the action contracts refer to plinth/actions.py.
|
||||
somewhat safe calls of other actions from outside the FreedomBox Service
|
||||
(Plinth) process. The comments about the action contracts refer to
|
||||
plinth/actions.py.
|
||||
"""
|
||||
if action_options is None:
|
||||
action_options = []
|
||||
|
||||
@ -144,14 +144,14 @@ function setup {
|
||||
}
|
||||
|
||||
#
|
||||
# For a user who installed using freedombox-setup Debian package, when Plinth is
|
||||
# run for the first time, don't run network setup. This is ensured by checking
|
||||
# for the file /var/lib/freedombox/is-freedombox-disk-image which will not
|
||||
# exist.
|
||||
# For a user who installed using freedombox-setup Debian package, when
|
||||
# FreedomBox Service (Plinth) is run for the first time, don't run network
|
||||
# setup. This is ensured by checking for the file
|
||||
# /var/lib/freedombox/is-freedombox-disk-image which will not exist.
|
||||
#
|
||||
# For a user who installed using FreedomBox disk image, when Plinth runs for the
|
||||
# first time, setup process executes and triggers the script due networks module
|
||||
# being an essential module.
|
||||
# For a user who installed using FreedomBox disk image, when FreedomBox Service
|
||||
# (Plinth) runs for the first time, setup process executes and triggers the
|
||||
# script due networks module being an essential module.
|
||||
#
|
||||
if [ -f "/var/lib/freedombox/is-freedombox-disk-image" ]
|
||||
then
|
||||
|
||||
@ -130,7 +130,7 @@ def _get_managed_services_of_module(modulepath):
|
||||
|
||||
def _get_managed_services():
|
||||
"""
|
||||
Get a set of all services managed by Plinth
|
||||
Get a set of all services managed by FreedomBox.
|
||||
|
||||
This collects all service-names inside the 'managed_services' variable of
|
||||
modules inside 'module_config_path'
|
||||
|
||||
@ -97,7 +97,7 @@ def subcommand_first_setup(_):
|
||||
# XXX: Instead of a separate action that is conditionally called for a
|
||||
# version number, we can check if the domain currently configured is what
|
||||
# we want and then based on the value do a reconfiguration. This approach
|
||||
# will work better when Plinth state is reset etc.
|
||||
# will work better when FreedomBox state is reset etc.
|
||||
action_utils.dpkg_reconfigure('slapd', {'domain': 'thisbox'})
|
||||
|
||||
|
||||
|
||||
6
debian/source.lintian-overrides
vendored
6
debian/source.lintian-overrides
vendored
@ -1,8 +1,8 @@
|
||||
# This is a consequnce of bug in jsxc
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838183. While is is possible
|
||||
# to change the upstream Plinth code to remove the links and create during
|
||||
# installation, the jsxc module in Plinth will stop working in certain modes of
|
||||
# development. We belive the proper fix for the problem is to fix the above
|
||||
# to change the upstream FreedomBox code to remove the links and create during
|
||||
# installation, the jsxc module in FreedomBox will stop working in certain modes
|
||||
# of development. We belive the proper fix for the problem is to fix the above
|
||||
# issue.
|
||||
plinth source: source-contains-unsafe-symlink plinth/modules/jsxc/static/img
|
||||
plinth source: source-contains-unsafe-symlink plinth/modules/jsxc/static/libjs-jsxc/jsxc.css
|
||||
|
||||
@ -21,7 +21,7 @@ Project specific errors
|
||||
|
||||
|
||||
class PlinthError(Exception):
|
||||
"""Base class for all Plinth specific errors."""
|
||||
"""Base class for all FreedomBox specific errors."""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
List of commonly used terms with multiple Danish Translation
|
||||
candidates and the one used for Plinth.
|
||||
candidates and the one used for FreedomBox.
|
||||
|
||||
Generally it has been sought to use the "less techy" option with
|
||||
a good established meaning in commonly spoken Danish. Also with
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#
|
||||
|
||||
"""
|
||||
Initial Django migration for Plinth to create database tables.
|
||||
Initial Django migration for FreedomBox to create database tables.
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals
|
||||
@ -29,7 +29,7 @@ from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
"""Initial migration schema for Plinth models."""
|
||||
"""Initial migration schema for FreedomBox models."""
|
||||
|
||||
initial = True
|
||||
|
||||
|
||||
@ -67,8 +67,8 @@ def setup(helper, old_version=False):
|
||||
"""Install and configure the module."""
|
||||
helper.install(managed_packages)
|
||||
# Reload avahi-daemon now that first-run does not reboot. After performing
|
||||
# Plinth package installation, new Avahi files will be available and
|
||||
# require restart.
|
||||
# FreedomBox Service (Plinth) package installation, new Avahi files will be
|
||||
# available and require restart.
|
||||
helper.call('post', actions.superuser_run, 'service',
|
||||
['reload', 'avahi-daemon'])
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ first_boot_steps = [
|
||||
|
||||
name = _('Users and Groups')
|
||||
|
||||
# List of all Plinth user groups
|
||||
# List of all FreedomBox user groups
|
||||
groups = set()
|
||||
|
||||
|
||||
|
||||
@ -72,9 +72,10 @@ class Transaction(object):
|
||||
def install(self):
|
||||
"""Run an apt-get transaction to install given packages.
|
||||
|
||||
Plinth needs to be running as root when calling this.
|
||||
Currently, this is meant to be only during first time setup
|
||||
when --setup is argument is passed.
|
||||
FreedomBox Service (Plinth) needs to be running as root when calling
|
||||
this. Currently, this is meant to be only during first time setup when
|
||||
--setup is argument is passed.
|
||||
|
||||
"""
|
||||
try:
|
||||
self._run_apt_command(['update'])
|
||||
|
||||
@ -301,8 +301,8 @@ def run_setup_on_modules(module_list, allow_install=True):
|
||||
setup on all essential modules only.
|
||||
|
||||
allow_install with or without package installation. When setting up
|
||||
essential modules, installing packages is not required as Plinth itself has
|
||||
dependencies on all essential modules.
|
||||
essential modules, installing packages is not required as FreedomBox
|
||||
(Plinth) itself has dependencies on all essential modules.
|
||||
|
||||
"""
|
||||
try:
|
||||
|
||||
@ -36,7 +36,7 @@ logging.disable(logging.CRITICAL)
|
||||
|
||||
|
||||
class TestCfg(unittest.TestCase):
|
||||
"""Verify that the Plinth configuration module behaves as expected."""
|
||||
"""Verify that the configuration module behaves as expected."""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
||||
@ -61,7 +61,7 @@ def dump_menu(menu):
|
||||
|
||||
|
||||
class MenuTestCase(TestCase):
|
||||
"""Verify the behavior of the Plinth Menu class."""
|
||||
"""Verify the behavior of the Menu class."""
|
||||
|
||||
def test_init(self):
|
||||
"""Verify that main_menu and essential items are created."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user