mirror of
https://github.com/linuxserver/docker-webgrabplus.git
synced 2026-02-19 19:52:00 +08:00
base to xenial, adjust cron job
This commit is contained in:
parent
ff360de6b2
commit
cfcfe49025
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM lsiobase/mono
|
||||
FROM lsiobase/xenial
|
||||
MAINTAINER saarg
|
||||
|
||||
# package versions
|
||||
@ -16,9 +16,15 @@ 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} && \
|
||||
|
||||
@ -1 +1 @@
|
||||
2 3 * * * /defaults/update.sh
|
||||
2 3 * * * s6-setuidgid abc /bin/bash /defaults/update.sh
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
/usr/sbin/cron -f -L 0
|
||||
/usr/sbin/cron -f -L 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user