dockerfile-apt-mirror's Issues
Changing the cron line
Hi there,
Thank you for putting this repository out there. I tried to implement this on my Synology NAS using docker but ran into a few problems.
Debugging the issue became problematic (corn job didn't run but didn't return any errors).
I'd suggest changing this line to append the file (you'll need to touch it first though) and also redirect stderr to stdout.
echo "0 3 * * * root /usr/bin/apt-mirror > /var/spool/apt-mirror/cron.log" > cron.d/apt-mirror
I ended up with a line like:
echo -e "0 3 * * * /usr/bin/apt-mirror >> /var/spool/apt-mirror/cron.log 2>&1\n" > apt-mirror
This brought up my next error - when the task ran - I got the error /bin/sh: 1: root: not found
Which means (at least for my scenario) I need to remove the user. I haven't tried it on any other docker hosts.
Were you able to run this without editing files in the container?
I didn't want to submit a PR in case this worked on your setup.
Also I think I needed to run crontab on the file to get it to register the corn job.
Thanks again!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.