From 065f83d6915586774845ac5867459be18a200801 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 01:57:56 +0200 Subject: [PATCH] Fix AdminBin: add shebang and __PACKAGE__->run() cPanel's adminbin framework requires the module to be directly executable with a shebang line, and Script::Call modules need __PACKAGE__->run() to bootstrap. Co-Authored-By: Claude Opus 4.6 --- cpanel/admin/Gniza/Restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpanel/admin/Gniza/Restore b/cpanel/admin/Gniza/Restore index f1a1ea6..50d63cf 100644 --- a/cpanel/admin/Gniza/Restore +++ b/cpanel/admin/Gniza/Restore @@ -1,3 +1,4 @@ +#!/usr/local/cpanel/3rdparty/bin/perl package Cpanel::AdminBin::Script::Call::Gniza::Restore; use strict; @@ -6,6 +7,8 @@ use parent 'Cpanel::AdminBin::Script::Call'; use IPC::Open3; use Symbol 'gensym'; +__PACKAGE__->run() if !caller; + my $GNIZA_BIN = '/usr/local/bin/gniza'; my $MAIN_CONFIG = '/etc/gniza/gniza.conf'; my $REMOTES_DIR = '/etc/gniza/remotes.d';