Merge pull request #229 from linuxserver/universal-cron-apt

standardize apt-get, update formatting
This commit is contained in:
Roxedus
2021-06-29 18:09:55 +02:00
committed by GitHub
2 changed files with 10 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi
-1
View File
@@ -4,7 +4,6 @@
if [ ! -f /usr/sbin/cron ] && \
[ -f /usr/bin/apt ]; then
# install cron
apt-get update
apt-get install --no-install-recommends -y \
cron
fi