From 14769ef4beed98f33e6257e0f52a1e20326ec0ed Mon Sep 17 00:00:00 2001
From: Jens <jens-gitlab@spamfreemail.de>
Date: Thu, 25 Aug 2022 12:07:18 +0000
Subject: [PATCH] Uninstall: Remove dangling symlink for PureFTPd cert which
 would otherwise prevent re-installation

---
 install/uninstall.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/install/uninstall.php b/install/uninstall.php
index 37cbe05f86..01543a64ff 100644
--- a/install/uninstall.php
+++ b/install/uninstall.php
@@ -98,6 +98,7 @@ if($do_uninstall == 'yes') {
 	@exec('chattr -i /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter');
 	@unlink("/var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter");
 	@unlink("/var/www/php-fcgi-scripts/ispconfig");
+	@unlink("/etc/ssl/private/pure-ftpd.pem");
 
 	echo "Backups in /var/backup/ and log files in /var/log/ispconfig are not deleted.";
 	echo "Finished uninstalling.\n";
-- 
GitLab