Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c4162eb700 | ||
![]() |
35731c0135 | ||
![]() |
54ad7cbcf9 |
@ -1,6 +1,6 @@
|
|||||||
FROM rust:1.34 AS riffol_build
|
FROM rust:1.34 AS riffol_build
|
||||||
|
|
||||||
RUN cargo install --git https://github.com/shimunn/riffol.git --branch print_error
|
RUN cargo install --git https://github.com/shimunn/riffol.git --branch 32b
|
||||||
|
|
||||||
FROM nginx:mainline
|
FROM nginx:mainline
|
||||||
|
|
||||||
|
@ -3,4 +3,6 @@ scriptine
|
|||||||
setuptools
|
setuptools
|
||||||
simplejson
|
simplejson
|
||||||
python-memcached
|
python-memcached
|
||||||
urllib3
|
pyyaml
|
||||||
|
requests==2.18.4
|
||||||
|
requests_oauthlib==0.8.0
|
||||||
|
@ -8,10 +8,7 @@ version_re = "seafile-server-?_?([\d\.]*)"
|
|||||||
seaf_home = os.environ["SEAF"] or "/opt/seafile"
|
seaf_home = os.environ["SEAF"] or "/opt/seafile"
|
||||||
|
|
||||||
def available(page):
|
def available(page):
|
||||||
(arch, _) = platform.architecture()
|
arch = platform.machine()
|
||||||
if arch == "64bit":
|
|
||||||
arch = "x86-64"
|
|
||||||
else: arch = "i386"
|
|
||||||
link = "http(s?):\/\/[^ \"\(\)\<\>]*%s_?%s.tar.gz" % (version_re ,arch)
|
link = "http(s?):\/\/[^ \"\(\)\<\>]*%s_?%s.tar.gz" % (version_re ,arch)
|
||||||
resp = requests.get(page)
|
resp = requests.get(page)
|
||||||
available = {}
|
available = {}
|
||||||
@ -99,6 +96,8 @@ def download(url, version):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
def install_command(url, version):
|
def install_command(url, version):
|
||||||
|
if platform.machine() == "armv7l":
|
||||||
|
url = "https://github.com/haiwen/seafile-rpi/releases/download/v%s/seafile-server_%s_stable_pi.tar.gz" % (version,version)
|
||||||
pkg = download(url, version)
|
pkg = download(url, version)
|
||||||
tmp = tempfile.mkdtemp()
|
tmp = tempfile.mkdtemp()
|
||||||
if pkg and call(["/bin/sh", "-c", 'cd %s; tar xzvf %s' % (tmp, pkg)]) == 0:
|
if pkg and call(["/bin/sh", "-c", 'cd %s; tar xzvf %s' % (tmp, pkg)]) == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user