Revert "fix: Fix the issue with upgrade failures (#9262)" (#9264)

This reverts commit b46192024f.
This commit is contained in:
ssongliu 2025-06-24 17:24:42 +08:00 committed by GitHub
parent b46192024f
commit 8f8d280e90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,7 +153,7 @@ func (u *UpgradeService) Upgrade(req dto.Upgrade) error {
}{
{path.Join(tmpDir, "1panel"), path.Join(binDir, "1panel"), 1},
{path.Join(tmpDir, "1pctl"), path.Join(binDir, "1pctl"), 2},
{selectInitScript(tmpDir, currentServiceName), servicePath, 3},
{selectInitScript(path.Join(tmpDir, "initscript"), currentServiceName), servicePath, 3},
}
for _, update := range criticalUpdates {