Add update_com.woltlab.wcf_5.5.9_systemId.php
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 Jan 2023 13:26:22 +0000 (14:26 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 Jan 2023 13:26:22 +0000 (14:26 +0100)
com.woltlab.wcf/package.xml
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5.9_systemId.php [new file with mode: 0644]

index 528d8daa3f940a632c18dfd3bd630baa1bfae6ec..10c9c4b7a9a53a709b8bd3eb084b21088020f4eb 100644 (file)
                <instruction type="script">acp/post_install.php</instruction>
        </instructions>
 
-       <instructions type="update" fromversion="5.5.7">
-               <instruction type="acpTemplate">acptemplates_update.tar</instruction>
-               <instruction type="file">files_update.tar</instruction>
-               <instruction type="template">templates_update.tar</instruction>
-       </instructions>
-       <instructions type="update" fromversion="5.5.8 dev 1">
-               <instruction type="acpTemplate">acptemplates_update.tar</instruction>
-               <instruction type="file">files_update.tar</instruction>
-               <instruction type="template">templates_update.tar</instruction>
+       <instructions type="update" fromversion="5.5.8">
+               <!-- Run wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5.9_systemId.php -->
        </instructions>
 </package>
diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5.9_systemId.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.5.9_systemId.php
new file mode 100644 (file)
index 0000000..909552a
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+/**
+ * Reset the System ID to encourage a recheck for the OPCache check.
+ *
+ * @author Tim Duesterhus
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use wcf\system\Environment;
+use wcf\system\registry\RegistryHandler;
+
+RegistryHandler::getInstance()->delete(
+    'com.woltlab.wcf',
+    Environment::SYSTEM_ID_REGISTRY_KEY
+);