Update digitalocean-oneclick-app-generator

This commit is contained in:
Kasra Bigdeli
2020-07-04 13:58:11 -04:00
committed by GitHub
parent ff3d124f96
commit 1ae20ff61b

View File

@@ -10,7 +10,7 @@ apt -y upgrade
############################ WAIT
docker pull caprover/caprover:1.4.0
docker pull caprover/caprover:1.7.1
cd /var/lib/cloud/scripts/per-instance
@@ -24,7 +24,7 @@ cat <<EOT >> z_01_caprover_installation.sh
ufw allow 80,443,3000,996,7946,4789,2377/tcp; ufw allow 7946,4789,2377/udp;
docker run -p 80:80 -p 443:443 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover:1.4.0
docker run -p 80:80 -p 443:443 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover:1.7.1
EOT
@@ -49,8 +49,9 @@ cat <<EOF
Welcome to CapRover, Open Source PaaS for developers!
Follow the guide here to finish the setup https://caprover.com/docs/get-started.html#step-3-install-caprover-cli
You can access the dashboard from http://<IP-ADDRESS>:3000
Or you can access the dashboard from http://<IP-ADDRESS>:3000
The default password is captain42
@@ -77,40 +78,26 @@ chmod +x 99-caprover-readme
apt -y update
apt -y upgrade
rm -rf /tmp/* /var/tmp/*
history -c
cat /dev/null > /root/.bash_history
unset HISTFILE
apt -y autoremove
apt -y autoclean
find /var/log -mtime -1 -type f -exec truncate -s 0 {} \;
rm -rf /var/log/*.gz /var/log/*.[0-9] /var/log/*-????????
rm -rf /var/lib/cloud/instances/*
rm -f /root/.ssh/authorized_keys /etc/ssh/*key*
dd if=/dev/zero of=/zerofile; sync; rm /zerofile; sync
cat /dev/null > /var/log/lastlog; cat /dev/null > /var/log/wtmp
find /var/log -mtime -1 -type f -exec truncate -s 0 {} \;
cd /etc
wget https://raw.githubusercontent.com/digitalocean/marketplace-partners/master/scripts/cleanup.sh
chmod +x cleanup.sh
./cleanup.sh
############################ WAIT
cd /etc
wget https://raw.githubusercontent.com/digitalocean/marketplace-partners/master/marketplace_validation/img_check.sh
wget https://raw.githubusercontent.com/digitalocean/marketplace-partners/master/scripts/img_check.sh
chmod +x img_check.sh
./img_check.sh
cat /var/lib/cloud/scripts/per-instance/z_01_caprover_installation.sh
cat /etc/update-motd.d/99-caprover-readme
history -c