82 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
a3de3ae277 users: Handle errors better during POSIX user operations
- If during an action, user does not exist ignore.

- If during an action, return a non-zero exist status.

- Catch an errors during actions as exceptions.

- Display a message that corresponding POSIX operation failed.
2015-01-25 01:45:51 +05:30
James Valleroy
2da8619248 Show if user is also a POSIX user in edit user form. 2015-01-20 12:37:16 +05:30
James Valleroy
45b5ce8de9 When enabling/disabling Django user, also enable/disable the corresponding POSIX user. 2015-01-20 12:37:04 +05:30
James Valleroy
eeced1c213 When updating a user's password, also update the POSIX user's password, when needed. 2015-01-20 12:36:50 +05:30
James Valleroy
46dd2225f7 Delete posix user when deleting plinth user. 2015-01-20 12:36:02 +05:30
James Valleroy
1a081bfab0 Create POSIX user during firstboot. Closes #31. 2015-01-20 12:28:53 +05:30
Sunil Mohan Adapa
b3e8e53c73 Use package framework for installing ejabberd and jwchat 2015-01-05 00:27:45 +05:30
Sunil Mohan Adapa
c7f27e493e Use package framework for installing tor 2015-01-05 00:13:20 +05:30
Sunil Mohan Adapa
7b45ad1813 Use package framework for installing pagekite 2015-01-05 00:13:19 +05:30
Sunil Mohan Adapa
d79f346591 Use package framework for installing firewalld 2015-01-05 00:13:19 +05:30
Sunil Mohan Adapa
9b9d112927 Use package framework for installing ownCloud 2015-01-05 00:13:19 +05:30
James Valleroy
7680d398a6 Use FQDN instead of hostname when registering an account. 2015-01-03 14:43:51 +05:30
James Valleroy
3d7de0778b Allow user to change domain name, then determine the FQDN from it. 2015-01-03 14:43:51 +05:30
James Valleroy
87b860bff4 Add a configuration field to change FQDN. 2015-01-03 14:43:50 +05:30
James Valleroy
01bea7808c Don't change ejabberd hosts or jwchat sitename when changing hostname.
Update these only when the domain name is changed.
2015-01-03 14:43:50 +05:30
James Valleroy
b8a7007552 Remove unnecessary ejabberdctl call. 2015-01-03 14:43:50 +05:30
James Valleroy
8c96519e34 Use correct node names for ejabberd. 2015-01-03 14:43:50 +05:30
James Valleroy
126d466dc7 Use mnesia-change-nodename to update ejabberd backup database.
As Sunil suggested, rearrange commands so we can do this with only 1 ejabberd restart.
2015-01-03 14:43:50 +05:30
James Valleroy
90c9e3b9a8 Convert xmpp-pre-hostname-change to python, merge into xmpp action file. 2015-01-03 14:43:50 +05:30
James Valleroy
219b7ff862 Apply patch from Sunil to correctly set hostname in systemd environment. 2015-01-03 14:43:50 +05:30
James Valleroy
b98a9ad84d Don't delete the ejabberd backup database if it fails to load. 2015-01-03 14:43:50 +05:30
James Valleroy
5bee775bc8 Fix some issues with replacing hostname in xmpp config. 2015-01-03 14:43:50 +05:30
James Valleroy
079d774476 Use regexes to relax matches when updating xmpp hostname. 2015-01-03 14:43:50 +05:30
James Valleroy
6d3c39d166 Make sure new hostname will show up immediately. 2015-01-03 14:43:50 +05:30
James Valleroy
c12fbec30f Change hostname for some more fields that may appear in ejabberd backup database. 2015-01-03 14:43:50 +05:30
James Valleroy
7fd611a5c9 Only modify specified lines in ejabberd backup database when changing hostname. 2015-01-03 14:43:50 +05:30
James Valleroy
48b6ff3728 Store ejabberd backup in non-world-readable location. 2015-01-03 14:43:50 +05:30
James Valleroy
10b234921b Track which section of ejabberd config we are in, and only edit the hosts section.
Check for jwchat config and ejabberd dumpfile before trying to modify them.
2015-01-03 14:43:50 +05:30
James Valleroy
6fc721a727 Convert xmpp-hostname-change to python, merge into xmpp action file. 2015-01-03 14:43:50 +05:30
James Valleroy
ff4fd4728c Don't use dpkg-reconfigure to modify configuration files.
It will fail if the files have been modified another way.
2015-01-03 14:43:50 +05:30
James Valleroy
20318b2f25 Use invoke-rc.d to avoid service mask error. Fixes #9. 2015-01-03 14:43:50 +05:30
James Valleroy
2751a8e848 Convert xmpp-register action to python. 2014-11-30 15:24:32 +05:30
James Valleroy
39e441e2b9 Add action to check if ejabberd is installed.
If not installed, show instructions on how to install it.
2014-11-30 15:23:25 +05:30
James Valleroy
ac0f0c9eba Show error messages from xmpp-setup and xmpp-register.
Avoid causing plinth to show error page.
2014-11-30 15:23:25 +05:30
Sunil Mohan Adapa
5b969d9d30 Explicitly write license headers for each source file
The package license (AGPL3+) implicitly indicates the license of each
file.  However, it is desirable to have license headers in each file.
This is the case for many prominent projects like GNU project, Mozilla
etc.
2014-11-30 14:49:49 +05:30
James Valleroy
28cc7f14c7 Handle errors with Tor HS configuration. 2014-11-10 21:42:40 -05:00
James Valleroy
e5de76401d Check if tor is installed before running some commands. 2014-11-10 21:22:21 -05:00
Sunil Mohan Adapa
84640560b5 Update actions/tor to Python3 and minor other updates
- Update to use Python3

- Use os.path.join to combine parts of path

- Fix documentation strings

- Use single quotes for regular strings merely for consistency

- Minor refactorings
2014-10-20 00:22:09 +05:30
James Valleroy
500cfd11e3 Add comment to mark end of Plinth Hidden Service configuration block. 2014-10-20 00:20:51 +05:30
James Valleroy
4e493c1ac5 Add Tor form to enable/disable hidden service. 2014-10-20 00:20:32 +05:30
James Valleroy
50797f9a92 Enable/disable Tor hidden service.
Currently only supports a single hidden service for HTTP/HTTPS.
2014-10-20 00:20:18 +05:30
James Valleroy
cf52bf5029 Display Tor hidden service configuration on Tor page.
Currently assumes that there is no more than 1 hidden service.
2014-10-20 00:19:42 +05:30
fonfon
7794893947 added tor actions: is-running, start, stop; display tor status at tor app page (enabling/disabling will be integrated later) 2014-10-20 00:14:35 +05:30
Sunil Mohan Adapa
c9d8bb9d00 Require and use Python3 2014-10-01 11:31:51 +05:30
James Valleroy
ee80507ee1 Update xmpp-hostname-change for new ejabberd package. 2014-09-12 22:15:21 -04:00
James Valleroy
cd1b4a2371 Update xmpp-setup to work with ejabberd >= 14.07 2014-09-12 22:09:24 -04:00
Sunil Mohan Adapa
2bbaa11c96 Update module manager action to handle invalid actions
- Also untabify the file
2014-09-08 18:21:24 +05:30
James Valleroy
fd01cc84fe Update module-manager to use enabled folder with regular files. 2014-09-07 16:06:19 +00:00
Nick Daly
bf3286b736 Merge: Sunil's firewall branch (follow up commits). 2014-04-28 19:59:06 -05:00
Sunil Mohan Adapa
3ef1ed83ce Add support for zones in firewall service 2014-04-27 18:16:32 +05:30