7872 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
133295238b
shaarli: tests: functional: Specify setup form submission button
Tests:

- Run shaarli functional tests

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-09-03 17:28:33 -04:00
Sunil Mohan Adapa
d645cfa35e
zoph: tests: functional: Simplify finding the form to submit
Tests:

- Run Zoph functional tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-09-03 17:28:31 -04:00
Sunil Mohan Adapa
75e5c71020
ejabberd: tests: functional: Ensure jsxc is installed
Fixes: #2259.

Tests:

- Run ejabberd functional tests after uninstalling jsxc

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-09-03 17:28:21 -04:00
Veiko Aasa
54a26f7741
samba: Ignore mounted files when listing mounts
In a testing container, checked that the mount point /run/host/os-release
is not listed on the Samba app page.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-09-03 07:37:30 -07:00
Veiko Aasa
84eedfca03
tests: functional: Assert app is not installed after uninstallation
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-09-03 07:34:30 -07:00
Jiří Podhorecký
b2459312a9
Translated using Weblate (Czech)
Currently translated at 99.9% (1489 of 1490 strings)
2022-09-03 16:18:20 +02:00
Eric
c152a00e2b
Translated using Weblate (Chinese (Simplified))
Currently translated at 68.9% (1028 of 1490 strings)
2022-09-03 16:18:19 +02:00
Burak Yavuz
30f88a04ba
Translated using Weblate (Turkish)
Currently translated at 100.0% (1490 of 1490 strings)
2022-09-02 08:23:48 +02:00
atilluF
401b553acb
Translated using Weblate (Italian)
Currently translated at 49.7% (742 of 1490 strings)
2022-08-31 13:15:32 +02:00
James Valleroy
eccf75efdd
Release v22.19 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.19
2022-08-29 22:34:18 -04:00
James Valleroy
a4d0cfb646
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 22:33:34 -04:00
James Valleroy
eda5e6aa1b
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 21:11:28 -04:00
Sunil Mohan Adapa
0881dae665
jsxc: Allow disabling the app
Closes: #1872.

Previously, JSXC can't be disabled and it's shortcut appears on the homepage
forever. Use the EnableState component which stores a flag in the sqlite
database to maintain the status of app being enabled.

Tests:

- Enable/disable button appears. Enabling/disabling the app updates the status
currently.

- Enabling the app shows icon on the homepage and disabling removes it.

- Enabling shows the menu item in the apps page as enabled. Disabling shows the
menu item in the apps page as disabled.

- It is possible the uninstall the app. When app is uninstall it is removed from
homepage and shows as disabled in the apps page.

- When app is disabled or uninstalled, trying to visit the
/plinth/apps/jsxc/jsxc/ throws a 404 error.

- Run functional tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Enable JSXC for Ejabberd test]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 21:06:54 -04:00
Sunil Mohan Adapa
67860385d0
tor: Use AppView and Operation for app page
- Use AppView for app page.

- Handle post enable/disable activities within the App class.

- Use Operation class to perform configuration instead of custom mechanism. Drop
all the older code for it.

Tests:

- DONE: Run functional tests
- DONE: Enabling Tor
  - DONE: Enables the service
  - DONE: Updates the firewall ports
  - DONE: Adds hidden service domain to names app
  - DONE: Shows app enabled
  - DONE: Firewall ports are opened
- DONE: Disabling Tor
  - DONE: Disables apt transport over Tor
  - DONE: Firewall ports are closed
  - DONE: Shows app disabled
  - DONE: Onion domain is removed from names app
- DONE: App page
  - DONE: Running/not-running status is shown properly based on whether tor
    daemon is running.
  - DONE: Port forwarding information is shown properly.
  - DONE: When hidden service is enabled, status of hidden services is shown
- DONE: Configuration update
  - DONE: Form shown correct status of the option
  - DONE: When configuration is being updated, operation progress is shown
  - DONE: Page refreshes once in 3 seconds during operation. Refresh stops after
    operation.
  - Once the operation is complete, success or error message is shown
  - DONE: Javascript to show/hide upstream bridges text box works
  - DONE: Javascript to enable/disable relay checkboxes works
  - DONE: Operation does not show notification.
  - DONE: Enabling apt over Tor does not work when app is disabled
  - DONE: When configuration is changed, the message 'Settings unchanged' is not
    shown.
  - DONE: If an error is thrown during configuration, an error message is shown
    properly.
  - DONE: Tor is restarted after configuration update and hidden service domains
    is updated.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:16 -04:00
Sunil Mohan Adapa
493071bfe0
letsencrypt: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- List of certificates in the system is shown.

- Diagnostics menu item is shown and works.

- Certificate operations work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:14 -04:00
Sunil Mohan Adapa
9b6774f279
snapshot: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- Diagnostics menu item is shown and works.

- Both Configure and manage snapshots tabs are shown.

- Changing configuration works, updated configuration is shown.

- Deleting some snapshots works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:11 -04:00
Sunil Mohan Adapa
29bf55dedb
security: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- Diagnostics are shown and work.

- Initial status of the configuration is show properly.

- Enabling/disabling configuration options reflects correct status.

- Status of frequent features updates shows properly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:09 -04:00
Sunil Mohan Adapa
a7eb5e8f0e
power: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- Diagnostics menu item is not shown.

- If apt is busy a warning message is shown.

- Restart and Shutdown buttons are shown and work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:07 -04:00
Sunil Mohan Adapa
0d0c417bcd
networks: Use AppView for app page
Tests:

- Enable/disable button is not shown.

- Diagnostics button is shown and works.

- Connections list, internet connection type and connectivity are shown
properly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:05 -04:00
Sunil Mohan Adapa
6bd9211791
names: Use AppView for app page
Tests:

- App page shows properly. Status of the current domains is shown properly.

- App page does not show enable/disable button.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:03 -04:00
Sunil Mohan Adapa
b970b72bb0
diagnostics: Use AppView for app page
Tests:

- Enable/disable button is not present.

- Diagnostics menu item is not present.

- Page shows 'Running diagnostics' button when diagnostics are not running.

- Page shows progress bar and results when diagnostics are running/completed.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:29:00 -04:00
Sunil Mohan Adapa
2eca38299f
backups: Use AppView for the main app page
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:58 -04:00
Sunil Mohan Adapa
d18e92af80
tests: functional: Add install/uninstall test for all apps
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:56 -04:00
Sunil Mohan Adapa
8513c26855
app: Add a menu item to trigger uninstallation
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:54 -04:00
Sunil Mohan Adapa
e1b4c2e52b
views: Implement a view to uninstall an app
- Take backup of the app before uninstall.

- Allow selecting the backup repository for backup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:51 -04:00
Sunil Mohan Adapa
811e95f561
setup: Implement operation to uninstall an app
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:49 -04:00
Sunil Mohan Adapa
a1c6c7b6a7
package: Implement uninstall in Package component
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:47 -04:00
Sunil Mohan Adapa
aa94d9f622
app: Add API to uninstall an app
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:44 -04:00
Sunil Mohan Adapa
22fef4d521
setup: Drop check for already running operation
- Currently operations manager already ensures that all operations run serially.
Even in future, operations manager is unlikely to run parallel operations on a
single app.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:42 -04:00
Sunil Mohan Adapa
97f45ee2bf
forms: Implement form for uninstallation
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:39 -04:00
Sunil Mohan Adapa
1908bd5366
package: Implement low-level methods for uninstalling
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:35 -04:00
Sunil Mohan Adapa
145b3ecc65
operation: Show operations on app page in addition to setup page
- Will be utilized by uninstall.

Tests:

- Operation progress is shown during uninstall of coturn app.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:28:17 -04:00
Sunil Mohan Adapa
6c67091ede
operation: Factor out template code into a separate file
- To be reused with app.html

Tests:

- During installation of the coturn app, operation progress is shown in the
page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-08-29 08:27:03 -04:00
Hugel
64e01fcfba
Translated using Weblate (Chinese (Simplified))
Currently translated at 69.0% (1019 of 1475 strings)
2022-08-24 05:19:09 +02:00
Veiko Aasa
2f1feeadf1
container: Show default values in command help
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Use the default formatter on all the subparsers]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-08-23 11:19:42 -07:00
Veiko Aasa
7f959ad304
container: Display help message when no args are passed
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
2022-08-23 10:51:41 -07:00
James Valleroy
ecc31fe1fd
upgrades: Hold janus during dist-upgrade
Tests:

1. Install Janus on stable system.

2. Start a dist-upgrade to testing.

- Janus is held during dist-upgrade.

- Janus is force upgraded by Plinth after dist-upgrade is complete.

Closes: #2254.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-08-23 09:18:40 -07:00
James Valleroy
042dd95de5
janus: Handle upgrades to 1.0.*
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-08-23 09:18:31 -07:00
James Valleroy
6ede12da25
janus: Convert action to privileged
Tests: Run functional tests for janus.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-08-23 09:18:19 -07:00
nbenedek
7fc3ce7c20
d/control: Break ufw as we use firewalld
Some VPS providers preconfigure ufw which can break the
FreedomBox installation process on plain Debian. To
prevent this, make the freedombox package remove ufw.

Tests I made:
1. Enabled ufw on a Debian system
2. Built a custom package with the modification in the
control file
3. Installed the custom packge.

Result: ufw gets removed before the execution of
`update-initramfs: Generating /boot/initrd.img-5.10.0-17-amd64`

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-08-23 08:58:05 -07:00
nbenedek
0a47b38c6d
ttrss: add donation url
Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2022-08-23 18:12:51 +05:30
Jiří Podhorecký
8697e5a000
Translated using Weblate (Czech)
Currently translated at 100.0% (1475 of 1475 strings)
2022-08-20 17:16:00 +02:00
James Valleroy
32dcf595d3
Translated using Weblate (French)
Currently translated at 99.8% (1473 of 1475 strings)
2022-08-19 15:01:00 +02:00
Fioddor Superconcentrado
60f3fce7ec
Translated using Weblate (Spanish)
Currently translated at 100.0% (1475 of 1475 strings)
2022-08-19 14:58:06 +02:00
109247019824
32dfa479b7
Translated using Weblate (Bulgarian)
Currently translated at 32.8% (484 of 1475 strings)
2022-08-18 19:21:52 +02:00
Andrij Mizyk
0f6896975c
Translated using Weblate (Ukrainian)
Currently translated at 82.9% (1224 of 1475 strings)
2022-08-18 19:21:52 +02:00
Eric
23e9841dd0
Translated using Weblate (Chinese (Simplified))
Currently translated at 68.8% (1015 of 1475 strings)
2022-08-18 19:21:51 +02:00
Burak Yavuz
f25170ec4b
Translated using Weblate (Turkish)
Currently translated at 100.0% (1475 of 1475 strings)
2022-08-18 19:21:51 +02:00
Maxime Leroy
a2bc26ac26
Translated using Weblate (French)
Currently translated at 99.8% (1473 of 1475 strings)
2022-08-18 19:21:51 +02:00
nautilusx
0c89d73e48
Translated using Weblate (German)
Currently translated at 100.0% (1475 of 1475 strings)
2022-08-18 19:21:50 +02:00