Update run.sh
This commit is contained in:
parent
6b10d0b024
commit
e10fa36543
12
run.sh
12
run.sh
@ -6,12 +6,6 @@ cd /root
|
|||||||
apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
apt install -y unattended-upgrades apt-config-auto-update
|
apt install -y unattended-upgrades apt-config-auto-update
|
||||||
|
|
||||||
#docker
|
|
||||||
apt install -y curl
|
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
|
||||||
sh ./get-docker.sh
|
|
||||||
touch docker-compose.yml
|
|
||||||
|
|
||||||
#update script
|
#update script
|
||||||
cat >> update.sh << 'END'
|
cat >> update.sh << 'END'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
@ -24,3 +18,9 @@ END
|
|||||||
|
|
||||||
chmod +x update.sh
|
chmod +x update.sh
|
||||||
ln -s /root/update.sh /etc/cron.weekly/update_docker
|
ln -s /root/update.sh /etc/cron.weekly/update_docker
|
||||||
|
|
||||||
|
#docker
|
||||||
|
apt install -y curl
|
||||||
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
|
sh ./get-docker.sh
|
||||||
|
touch docker-compose.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user