Merge lp:~jose/charms/precise/seafile/fixes into lp:charms/seafile

Proposed by José Antonio Rey
Status: Merged
Merged at revision: 8
Proposed branch: lp:~jose/charms/precise/seafile/fixes
Merge into: lp:charms/seafile
Diff against target: 68 lines (+6/-12)
2 files modified
hooks/config-changed (+5/-11)
hooks/install (+1/-1)
To merge this branch: bzr merge lp:~jose/charms/precise/seafile/fixes
Reviewer Review Type Date Requested Status
Charles Butler (community) Approve
Adam Israel (community) Approve
Review Queue (community) automated testing Needs Fixing
Review via email: mp+244636@code.launchpad.net

Description of the change

Fixing unbound variables and juju log output

To post a comment you must log in.
Revision history for this message
Review Queue (review-queue) wrote :

This items has failed automated testing! Results available here http://reports.vapour.ws/charm-tests/charm-bundle-test-10917-results

review: Needs Fixing (automated testing)
Revision history for this message
Adam Israel (aisrael) wrote :

Hi Jose,

I had the opportunity to review this MP today. The failing automated test appears to be availability issues on Azure and AWS, not related to the charm itself.

Following the README, I created a yaml file with the server configuration and deployed it. I did run into an error, however:

2015-01-14 17:44:06 INFO config-changed /var/lib/juju/agents/unit-seafile-0/charm/hooks/config-changed: line 295: server_manual_http: unbound variable

I can send you the complete log if that would be helpful.

review: Needs Fixing
8. By José Antonio Rey

Fixed problem with an unbound variable

Revision history for this message
José Antonio Rey (jose) wrote :

This has been fixed now!

Revision history for this message
Adam Israel (aisrael) wrote :

Thanks for the quick fix, José! LGTM, +1

review: Approve
Revision history for this message
Charles Butler (lazypower) wrote :

+1 LGTM - merging as this is a prereq for the test merge to resolve a failure case

Thanks for the submission jose

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/config-changed'
2--- hooks/config-changed 2014-05-15 17:15:00 +0000
3+++ hooks/config-changed 2015-01-14 18:57:34 +0000
4@@ -9,7 +9,7 @@
5 default_seahub_db=${TOPDIR}/seahub.db
6 PYTHON=`which python`
7
8-export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH}
9+export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64
10
11 use_existing_ccnet="false"
12 use_existing_seafile="false"
13@@ -206,7 +206,9 @@
14
15 function get_seahub_admin_passwd () {
16 seahub_admin_passwd=`config-get seahub_admin_passwd`
17- [ -z ${seahub_admin_passwd} ] && seahub_admin_passwd=`pwgen -N1`
18+ if [ -z ${seahub_admin_passwd} ]; then
19+ seahub_admin_passwd=`pwgen -N1`
20+ fi
21 }
22
23 get_seahub_admin_email;
24@@ -251,8 +253,7 @@
25 export CCNET_CONF_DIR=$default_ccnet_conf_dir
26 export SEAFILE_CONF_DIR=$seafile_data_dir
27
28-export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.6/site-packages:${INSTALLPATH}/seafile/lib64/python2.6/site-packages:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
29-export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.7/site-packages:${INSTALLPATH}/seafile/lib64/python2.7/site-packages:$PYTHONPATH
30+export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.6/site-packages:${INSTALLPATH}/seafile/lib64/python2.6/site-packages:${INSTALLPATH}/seahub/thirdpart
31
32 manage_py=${INSTALLPATH}/seahub/manage.py
33 pushd "${INSTALLPATH}/seahub" 2>/dev/null 1>&2
34@@ -282,21 +283,14 @@
35
36 sleep 1
37
38-juju-log "-----------------------------------------------------------------"
39 juju-log "Your seafile server configuration has been finished successfully."
40-juju-log "-----------------------------------------------------------------"
41 juju-log "run seafile server: ./seafile.sh { start | stop | restart }"
42 juju-log "run seahub server: ./seahub.sh { start <port> | stop | restart <port> }"
43-juju-log "-----------------------------------------------------------------"
44 juju-log "If you are behind a firewall, remember to allow input/output of these tcp ports:"
45-juju-log "-----------------------------------------------------------------"
46 juju-log "port of ccnet server: ${server_port}"
47 juju-log "port of seafile server: ${seafile_server_port}"
48 juju-log "port of seafile httpserver: ${httpserver_port}"
49 juju-log "port of seahub: ${seahub_port}"
50-juju-log "When problems occur, Refer to\n"
51-juju-log " ${server_manual_http}\n"
52-juju-log "for information."
53
54 currentserver_port=`cat .serverport`
55 currentseafile_server_port=`cat .seafileserverport`
56
57=== modified file 'hooks/install'
58--- hooks/install 2014-04-15 05:48:58 +0000
59+++ hooks/install 2015-01-14 18:57:34 +0000
60@@ -16,7 +16,7 @@
61
62
63 # Install pre-requisite packages
64-apt-get install -y python-software-properties python2.7 python-setuptools python-simplejson python-imaging sqlite3 dnsutils pwgen
65+apt-get install -y python-software-properties python2.7 python-setuptools python-simplejson python-imaging sqlite3 dnsutils pwgen python-django
66
67 # Install charm-helpers-sh
68 apt-add-repository -y ppa:charmers/charm-helpers

Subscribers

People subscribed via source and target branches

to all changes: