Sunil Mohan Adapa
d8ba09eb74
owncloud: Minor cleanup in action file
2015-03-08 13:23:36 +05:30
Sunil Mohan Adapa
57094d9820
owncloud: Check for database configuration to treat as enabled
...
- Newer version of owncloud package enable the Apache2 owncloud configuration
by default. This happens eventhough database configuraiton is not available.
Plinth only checks for Apache2 owncloud configuration as enabled to determine
if owncloud is enabled and hence falsely shows the owncloud is enabled.
- Newer version of owncloud also create a /etc/owncloud/config.php with simple
instance identifier set. So merely checking if the files exists is not of
much use.
- This patch checks if the dbtype variable is configured in config.php or
autoconfig.php along with Apache2 owncloud configuration to determine if
owncloud is enabled.
- The same logic is used to determine if autoconfig.php must be generated.
2015-03-08 13:22:35 +05:30
Daniel Steglich
98506f0fdd
improved check of current IP, registered at DNS server
2015-03-06 21:46:57 +01:00
Daniel Steglich
7d30480117
improved ipurl check
2015-03-06 21:41:57 +01:00
Daniel Steglich
6acc4cc44f
only do a update if DNS entry is outdated
2015-03-06 21:34:57 +01:00
Daniel Steglich
e42b8e5015
covered empty server arguments and made parameter comparsion more easy
2015-03-05 14:03:11 +01:00
Daniel Steglich
eab3ac2cfc
added comments
2015-03-04 22:22:30 +01:00
Daniel Steglich
1075665a90
fixed indention
2015-03-04 10:28:28 +00:00
Daniel Steglich
ad1d94f6a6
changed success/failure storage after update is done via update URL
2015-03-04 10:17:48 +00:00
Daniel Steglich
68bd749164
sorround update URL with double qoutes
2015-03-04 10:01:48 +00:00
Daniel Steglich
5c5134f233
store successful update events to be displayed on status page
2015-03-04 09:18:53 +00:00
Daniel Steglich
8bcea1fdae
do not show single quotes arround the update URL
2015-03-03 22:46:32 +01:00
Daniel Steglich
145028d518
added function to replace vars from update URL
2015-03-03 22:35:28 +01:00
Daniel Steglich
81ad2019b1
use global defined string variables
2015-03-03 21:18:31 +01:00
Daniel Steglich
875c24e213
added comment lines
2015-03-03 21:14:55 +01:00
Daniel Steglich
b782f36b28
consistent use of dollar bracket to assign variables from system call
2015-03-03 21:10:04 +01:00
Daniel Steglich
f611614c14
consistent use of curly brackets
2015-03-03 21:07:07 +01:00
Daniel Steglich
a2e8a0ec8a
prepared update URL functionality (implemented new parameters)
2015-03-02 23:39:28 +01:00
Daniel Steglich
ffcfccb20f
beautyfied and refactored code
2015-03-02 20:56:46 +01:00
Daniel Steglich
5b71ce815c
cat on a empty string will block the script
2015-02-24 08:05:54 +00:00
Daniel Steglich
fa3b5ae9e6
create config dir if not exist
2015-02-23 20:03:36 +00:00
fonfon
855755263d
Merge pull request #105 from SunilMohanAdapa/owncloud-apache-reload
...
owncloud: Do Apache reload instead of restart
2015-02-23 14:39:12 +01:00
Daniel Steglich
c0587fd9df
reduce retry conuter to avoid UI blocking time
2015-02-23 12:41:28 +00:00
Sunil Mohan Adapa
1f43be95a0
upgrades: Handle action errors using error codes
...
- This is more reliable than string parsing in the output.
- We will be using pythonic try/catches instead of if conditions.
2015-02-22 17:48:35 -05:00
Sunil Mohan Adapa
82fbbe1fec
upgrades: Handle upgrade interval other than 1 day properly
...
- We must assume that apart from Plinth there will be user or user-agent
changes to the configuration files. In this case the value may be set
something other than '1' day.
2015-02-22 17:48:35 -05:00
Sunil Mohan Adapa
d33e60c74a
upgrades: Minor styling fixes
...
- Remove emacs mode line as emacs automatically detect Python files
based on the #! line.
- End comments with a '.'.
- Use single quotes instead of double quotes for string for consistensy.
- Update message to say that it take more than a minute to finish
upgrades. Some times it takes a lot more than that.
2015-02-22 17:48:34 -05:00
Sunil Mohan Adapa
771581a75f
owncloud: Do Apache reload instead of restart
...
Restarting Apache breaks existing connections. This includes the connection
on which the Plinth's user has made the ownCloud enable/disable request. This
leads to an almost certain 'Connection Interupted' message to the client when
changes to ownCloud are submitted.
On the other hand, 'reload' is sufficient and 'restart' is not required. It is
also faster and recommended by 'a2enconf' and 'a2disconf' commands.
2015-02-11 10:48:41 +05:30
fonfon
4a19dcc807
Minor improvement of auto-update check
...
Instead of relying on /etc/apt/apt.conf.d/20auto-upgrades having the
according entries we now verify the auto-upgrade entries via apt-config
2015-01-28 19:50:27 +00:00
James Valleroy
cd057994d3
Include { in Origins-Pattern regex pattern.
2015-01-28 19:50:27 +00:00
James Valleroy
6292b47e54
Use regexs to match more valid configs for unattended-upgrades.
2015-01-28 19:50:27 +00:00
James Valleroy
304e2aea62
Add form for enabling automatic upgrades.
2015-01-28 19:50:26 +00:00
James Valleroy
80eff7fd6e
Add upgrades module that can run unattended-upgrades.
2015-01-28 19:50:26 +00:00
Sunil Mohan Adapa
2b85416aa2
users: Use deluser instead userdel for deleting POSIX users
2015-01-25 01:45:51 +05:30
Sunil Mohan Adapa
c2b806cf0d
users: Rename a POSIX user when Plinth user is renamed
2015-01-25 01:45:51 +05:30
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
Daniel Steglich
411abfe954
use start-stop-daemon to avoid hanging web page if ez-ipupdate tool is blocking
2015-01-15 21:30:25 +00:00
Daniel Steglich
d2fdf1d403
fixed an issue where first update after initial configuration will not work because the cronjob does not recognize the ip change
2015-01-05 21:14:07 +00:00
Daniel Steglich
91cc161f96
fixed indention
2015-01-05 20:48:45 +00:00
Daniel Steglich
6b6e7f695f
improved robustness of update script in case of connection trouble (wget may hang a long time if DNS fails or route is unavailable)
2015-01-05 17:08:15 +00:00
Daniel Steglich
cb52d7fcf0
do not report errors on first run
2015-01-05 16:20:28 +00:00
Daniel Steglich
e91aa7fa44
removed obsolete install options because installation process is done by package framework now
2015-01-05 11:33:28 +00:00
Daniel Steglich
6c214c915c
Merge remote-tracking branch 'upstream/master' into dynamicdns
2015-01-04 23:52:14 +01:00
Daniel Steglich
a2ffb64996
fixed status update if nothing was done
2015-01-04 22:24:32 +00:00
Daniel Steglich
69c043fefb
fixed reading uptime from system
2015-01-04 23:16:46 +01:00
Daniel Steglich
7cb98f2122
added install command to action script
2015-01-04 22:04:40 +01:00