Merge pull request #3 from linuxserver/vanilla_base

base to xenial, adjust cron job
This commit is contained in:
sparklyballs 2017-06-11 21:24:10 +01:00 committed by GitHub
commit dcf43b5a24
5 changed files with 14 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM lsiobase/mono
FROM lsiobase/xenial
MAINTAINER saarg
# package versions
@ -16,12 +16,18 @@ ENV HOME /config
# install runtime dependencies
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | tee /etc/apt/sources.list.d/mono-official.list && \
apt-get update && \
apt-get install -y \
cron && \
cron \
libmono-system-data4.0-cil \
libmono-system-web4.0-cil \
mono-runtime \
unzip && \
# install webgrab
WEBGRAB_BRANCH=${WEBGRAB_VER%.0} && \
WEBGRAB_BRANCH=${WEBGRAB_VER%.*} && \
mkdir -p \
/app/wg++ && \
curl -o /tmp/wg++.tar.gz -L \

View File

@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bash
#!/bin/bash
cd /app/wg++/bin || exit
mono WebGrab+Plus.exe "/config"

View File

@ -1 +1 @@
2 3 * * * /defaults/update.sh
2 3 * * * s6-setuidgid abc /bin/bash /defaults/update.sh

View File

@ -9,7 +9,7 @@
# add cron file for running webgrab+plus
[[ ! -e /config/wg-cron ]] && \
cp /defaults/wg-cron /config/wg-cron
crontab -u abc /config/wg-cron
crontab /config/wg-cron
# permissions
chown -R abc:abc \

View File

@ -1,3 +1,3 @@
#!/usr/bin/with-contenv bash
/usr/sbin/cron -f -L 0
/usr/sbin/cron -f -L 1