Add Alpine/Automated-Updates/installer.sh
This commit is contained in:
parent
035af57f43
commit
38b6af58cd
7
Alpine/Automated-Updates/installer.sh
Normal file
7
Alpine/Automated-Updates/installer.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo -e "#!/bin/sh\napk upgrade --update | sed \"s/^/[\`date\`] /\" >> /var/log/apk-autoupgrade.log" > /etc/periodic/daily/apk-autoupgrade && \
|
||||||
|
chmod 700 /etc/periodic/daily/apk-autoupgrade
|
||||||
|
|
||||||
|
apk add crond
|
||||||
|
rc-service crond start
|
||||||
|
rc-update add crond
|
||||||
Loading…
x
Reference in New Issue
Block a user