1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-25 10:08:33 +00:00

Merge pull request #506 from haiwen/set-up-script

remove SERVICE_URL from ccnet.conf
This commit is contained in:
Daniel Pan 2021-10-12 16:10:47 +08:00 committed by GitHub
commit 4d023b2baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -806,7 +806,7 @@ class CcnetConfigurator(AbstractConfigurator):
def generate(self): def generate(self):
print('Generating ccnet configuration ...\n') print('Generating ccnet configuration ...\n')
with open(self.ccnet_conf, 'w') as fp: with open(self.ccnet_conf, 'w') as fp:
fp.write('[General]\nSERVICE_URL = http://%s/\n' % self.ip_or_domain) fp.write('[General]')
self.generate_db_conf() self.generate_db_conf()

View File

@ -290,7 +290,6 @@ function gen_ccnet_conf () {
ccnet_conf=${default_conf_dir}/ccnet.conf ccnet_conf=${default_conf_dir}/ccnet.conf
if ! $(cat > ${ccnet_conf} <<EOF if ! $(cat > ${ccnet_conf} <<EOF
[General] [General]
SERVICE_URL = http://$ip_or_domain
EOF EOF
); then ); then
echo "failed to generate ccnet.conf"; echo "failed to generate ccnet.conf";