Bug 201437

Summary: www/seahub: Reinstall or upgrade overwrites settings.py
Product: Ports & Packages Reporter: Christoph H. Larsen <christoph.larsen>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: Ultima1252, cs, miwi, vlad-fbsd, yan_jingfeng
Priority: --- Keywords: needs-patch
Version: LatestFlags: vlad-fbsd: maintainer-feedback+
Hardware: Any   
OS: Any   

Description Christoph H. Larsen 2015-07-09 11:13:22 UTC
Dear Jingfeng,
It seems that reinstallation or upgrading of this port overwrites settings.py in haiwen/seafile-server/seahub/seahub/.
I suppose that this s not desired behaviour.


Also, the seahub bash scripts continue contain placeholders that should be replaced with the correct installation directories.
Kindly see below:

--> /usr/local/www/haiwen/seafile-server/seahub/send_user_notifications.sh:

#cd ##FIX_WWWDIR##/seafile-server/seahub
cd /usr/local/www/haiwen/seafile-server/seahub

#export CCNET_CONF_DIR=##FIX_WWWDIR##/ccnet
export CCNET_CONF_DIR=/usr/local/www/haiwen/ccnet

#export SEAFILE_CONF_DIR=##FIX_WWWDIR##/seafile-data
export SEAFILE_CONF_DIR=/home/[instance]/data


--> /usr/local/www/haiwen/seafile-server/seahub/setenv.sh:

#export CCNET_CONF_DIR=##FIX_WWWDIR##/ccnet
export CCNET_CONF_DIR=/usr/local/www/haiwen/ccnet

#export SEAFILE_CONF_DIR=##FIX_WWWDIR##/seafile-data
export SEAFILE_CONF_DIR=/home/[instance]/data

What do you think?

Thank a lot, indeed.

Chris
Comment 1 Carlo Strub freebsd_committer freebsd_triage 2015-09-15 22:31:52 UTC
Could you please provide a patch.
Comment 2 Ultima 2015-10-21 15:37:32 UTC
 Settings.py is not a configuration file, it is changed on every update. The configuration file for settings.py is seahub_settings.py in the haiwen directory.

bug 203929 is an port update that contains many fixes including the #FIX_WWWDIR placeholder.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203929
Comment 3 Ultima 2016-06-06 23:50:16 UTC
This is not a bug and works as intended, the configuration file for settings.py is /usr/local/www/haiwen/conf/seahub_settings.py. Anything you need to edit in settings.py should be placed in this file as it is not overwritten.

This bug should be safe to close.
Comment 4 VK 2016-06-07 01:16:54 UTC
Maintainer feedback timeout. I guess this is up to you now, Martin.
Comment 5 VK 2016-06-07 02:04:07 UTC
Ah, the maintainers changed, per Bug #204110, which occurred many moons ago, so I'm actually setting this to maintainer-feedback+ because Ultima responded.

Also, closing.