mirror of
https://github.com/jung-geun/DynamicDNS-SSL.git
synced 2025-12-19 20:44:40 +09:00
Refactor Dockerfile to use Python 3.11-slim
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user