Compare commits

...

3 Commits
master ... arch

Author SHA1 Message Date
shimunn
c4162eb700 use adapted riffol version
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2019-04-21 13:27:52 +02:00
shimunn
35731c0135 afix urllib version
Some checks are pending
continuous-integration/drone/push Build is failing
2019-04-21 13:26:59 +02:00
shimunn
54ad7cbcf9 detecht rasp pi
Some checks reported errors
continuous-integration/drone/push Build was killed
2019-04-20 18:11:15 +02:00
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
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

View File

@ -3,4 +3,6 @@ scriptine
setuptools
simplejson
python-memcached
urllib3
pyyaml
requests==2.18.4
requests_oauthlib==0.8.0

View File

@ -8,10 +8,7 @@ version_re = "seafile-server-?_?([\d\.]*)"
seaf_home = os.environ["SEAF"] or "/opt/seafile"
def available(page):
(arch, _) = platform.architecture()
if arch == "64bit":
arch = "x86-64"
else: arch = "i386"
arch = platform.machine()
link = "http(s?):\/\/[^ \"\(\)\<\>]*%s_?%s.tar.gz" % (version_re ,arch)
resp = requests.get(page)
available = {}
@ -99,6 +96,8 @@ def download(url, version):
return 0
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)
tmp = tempfile.mkdtemp()
if pkg and call(["/bin/sh", "-c", 'cd %s; tar xzvf %s' % (tmp, pkg)]) == 0: