mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
d20de21fd4
3 changed files with 10 additions and 10 deletions
|
@ -2,11 +2,11 @@ import json
|
|||
|
||||
with open("/etc/ssowat/conf.json.persistent", "r") as jsonFile:
|
||||
data = json.load(jsonFile)
|
||||
if "unprotected_urls" in data:
|
||||
data["unprotected_urls"].append("/seafhttp")
|
||||
if "skipped_urls" in data:
|
||||
data["skipped_urls"].append("/seafhttp")
|
||||
else:
|
||||
data["unprotected_urls"] = ["/seafhttp"]
|
||||
data["unprotected_urls"].append("/seafdav")
|
||||
data["skipped_urls"] = ["/seafhttp"]
|
||||
data["skipped_urls"].append("/seafdav")
|
||||
|
||||
with open("/etc/ssowat/conf.json.persistent", "w") as jsonFile:
|
||||
jsonFile.write(json.dumps(data, indent=4, sort_keys=True))
|
|
@ -2,8 +2,8 @@ import json
|
|||
|
||||
with open("/etc/ssowat/conf.json.persistent", "r") as jsonFile:
|
||||
data = json.load(jsonFile)
|
||||
data["unprotected_urls"].remove("/seafhttp")
|
||||
data["unprotected_urls"].remove("/seafdav")
|
||||
data["skipped_urls"].remove("/seafhttp")
|
||||
data["skipped_urls"].remove("/seafdav")
|
||||
|
||||
with open("/etc/ssowat/conf.json.persistent", "w") as jsonFile:
|
||||
jsonFile.write(json.dumps(data, indent=4, sort_keys=True))
|
|
@ -39,10 +39,10 @@ get_source() {
|
|||
md5sum=$armsum
|
||||
elif [[ $1 == 'x86-64' ]]
|
||||
then
|
||||
wget -q -O '/tmp/seafile_src.tar.gz' 'https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_'$2'_x86-64.tar.gz'
|
||||
wget -q -O '/tmp/seafile_src.tar.gz' 'https://download.seadrive.org/seafile-server_'$2'_x86-64.tar.gz'
|
||||
md5sum=$x86_64sum
|
||||
else
|
||||
wget -q -O '/tmp/seafile_src.tar.gz' 'https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_'$2'_i386.tar.gz'
|
||||
wget -q -O '/tmp/seafile_src.tar.gz' 'https://download.seadrive.org/seafile-server_'$2'_i386.tar.gz'
|
||||
md5sum=$i386sum
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue