Description: overriding the installed acme.sh with a copy that cannot be upgraded is a bad idea
Last-Update: 2026-07-17
Forwarded: https://github.com/acmesh-official/acme.sh/issues/7135
--- a/acme.sh
+++ b/acme.sh
@@ -7655,7 +7655,10 @@
     chmod 700 "$LE_CONFIG_HOME"
   fi
 
-  cp "$PROJECT_ENTRY" "$LE_WORKING_DIR/" && chmod +x "$LE_WORKING_DIR/$PROJECT_ENTRY"
+  if [ -f "$LE_WORKING_DIR/$PROJECT_ENTRY" ]; then
+    _info "Removing local copy of acme.sh in favor of system-installed one"
+    rm -f "$LE_WORKING_DIR/$PROJECT_ENTRY"
+  fi
 
   if [ "$?" != "0" ]; then
     _err "Installation failed, cannot copy $PROJECT_ENTRY"
@@ -8125,6 +8128,8 @@
 }
 
 installOnline() {
+  _err "Please upgrade the debian package instead."
+  return 1
   _info "Installing from online archive."
 
   _branch="$BRANCH"
