mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Merge remote-tracking branch 'freedombox-team/master'
This commit is contained in:
commit
4bc837f6fc
@ -115,10 +115,9 @@ directory:
|
||||
guest$ cd /freedombox
|
||||
```
|
||||
|
||||
Run the development version of FreedomBox Service (Plinth) from your source
|
||||
directory in the container using the following command. This command
|
||||
continuously deploys your code changes into the container providing a
|
||||
quick feedback cycle during development.
|
||||
Run the development version of FreedomBox Service in the container using the
|
||||
following command. This command continuously deploys your code changes into the
|
||||
container providing a quick feedback cycle during development.
|
||||
|
||||
```bash
|
||||
guest$ freedombox-develop
|
||||
|
||||
14
container
14
container
@ -164,7 +164,7 @@ sudo apt-mark unhold freedombox
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes ncurses-term \
|
||||
sshpass bash-completion
|
||||
|
||||
echo 'alias freedombox-develop="sudo -u plinth /freedombox/run --develop"' \
|
||||
echo 'alias freedombox-develop="cd /freedombox; sudo -u plinth /freedombox/run --develop"' \
|
||||
>> /home/fbx/.bashrc
|
||||
|
||||
# Make some pytest related files and directories writable to the fbx user
|
||||
@ -812,8 +812,16 @@ def _destroy(distribution):
|
||||
|
||||
connection_name = f'fbx-{distribution}-shared'
|
||||
logger.info('Removing Network Manager connection %s', connection_name)
|
||||
subprocess.run(['sudo', 'nmcli', 'connection', 'delete', connection_name],
|
||||
stdout=subprocess.DEVNULL)
|
||||
result = subprocess.run(
|
||||
['sudo', 'nmcli', 'connection', 'delete', connection_name],
|
||||
capture_output=True)
|
||||
if result.returncode not in (0, 10):
|
||||
# nmcli failed and not due to 'Connection, device, or access point does
|
||||
# not exist.' See
|
||||
# https://developer-old.gnome.org/NetworkManager/stable/nmcli.html
|
||||
logger.error('nmcli returned code %d', result.returncode)
|
||||
logger.error('Error message:\n%s', result.stderr.decode())
|
||||
logger.error('Output:\n%s', result.stdout.decode())
|
||||
|
||||
logger.info('Keeping downloaded image: %s',
|
||||
_get_compressed_image_path(distribution))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user