Fix issues with configuration/parameters loading

- Change default server directory from plinth/ to /plinth as the program
  expects.

- First load the values from configuration file and then override them
  with command line parameters.

- Show default values on the command line help.

- Use configuration file values as default values to command line
  parameters.

- Log the value of script prefix (server_dir) for easy debugging.

- Make sure the server_dir is properly loaded from configuration files.
This commit is contained in:
Sunil Mohan Adapa committed 2015-04-07 22:43:25 +05:30
1 parent 2a83f29b8b
commit e09018fe9a
3 files changed
+11 -8

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ config_dir = /etc/plinth
data_dir = /var/lib/plinth
log_dir = /var/log/plinth
pid_dir = /var/run
server_dir = plinth/
server_dir = /plinth
actions_dir = /usr/share/plinth/actions
doc_dir = /usr/share/doc/plinth