Refactor Dockerfile to use Python 3.11-slim

This commit is contained in:
2024-09-24 22:50:43 +09:00
parent 9dde702e85
commit 19c2ddc6f5
8 changed files with 60 additions and 53 deletions

View File

@@ -1,7 +1,18 @@
#!/bin/bash
@echo "Uninstalling Cloudflare DDNS and Certbot..."
@sudo rm -rf /app/cloudflare-ddns
@sudo rm /etc/cron.d/cloudflare-ddns
@sudo rm /var/log/cloudflare_ddns.log
@sudo rm /var/log/cloudflare_ddns.log.*
@echo "Done"
echo "Uninstalling Cloudflare DDNS and Certbot..."
read -p "Do you want to uninstall Certbot and Cloudflare API tools? (y/N): " uninstall
uninstall=${uninstall:-n}
echo -e "\n"
if [ "$uninstall" == "y" ]; then
echo "Uninstalling Certbot and Cloudflare API tools..."
sudo apt remove --purge -y certbot python3-certbot-dns-cloudflare jq
sudo rm -rf /app/cloudflare-ddns
sudo rm /etc/cron.d/cloudflare-ddns
sudo rm /var/log/cloudflare_ddns.log
sudo rm /var/log/cloudflare_ddns.log.*
echo "Done"
else
echo "Uninstallation is cancelled."
fi