Linux 98.203.178.68.host.secureserver.net 4.18.0-553.164.1.el8_10.x86_64 #1 SMP Thu Sep 17 04:21:10 EDT 2026 x86_64
Apache
Server IP : 68.178.203.98 & Your IP : 216.73.217.130
Domains : 108 Domain
User : lostrivercommuni
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
cpanel /
ea-podman /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2026-09-28 02:56
lib
[ DIR ]
drwxr-xr-x
2026-09-28 02:53
registered-containers.json
3
B
-rw-------
2026-09-22 20:30
webapp-dir-setup
1.84
KB
-rwxr-xr-x
2026-09-22 20:30
Save
Rename
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - webapp-dir-setup Copyright 2026 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited use strict; use warnings; # Move a web application's staged source directory into its new container's # directory (as `webapp/`). Invoked by # ea_podman::util::_ensure_latest_container() when an arbitrary-image install # passes --webapp-dir — the install-time analog of an EA4 container package's # ea-podman-local-dir-setup hook. The staged directory — the application's # source itself — becomes `webapp/`, so nothing is left behind at the staged # location and `webapp/` is the application's source root; everything beside # it in the container directory belongs to the system, not the application. exit( run(@ARGV) ? 0 : 1 ) if !caller(); sub run { my ( $staged_dir, $container_dir ) = @_; die "Usage: webapp-dir-setup <STAGED_DIR> <CONTAINER_DIR>\n" if !length( $staged_dir // '' ) || !length( $container_dir // '' ); for my $dir ( $staged_dir, $container_dir ) { die "“$dir” must be an absolute path\n" if $dir !~ m{^/}; die "“$dir” is not a directory\n" if !-d $dir; } my $webapp_dir = "$container_dir/webapp"; die "“$webapp_dir” already exists\n" if -e $webapp_dir; # rename(2) is atomic but cannot cross filesystems; the staged directory # and the container directory normally both live under the user's home, so # a failure here means nothing moved and the install can abort cleanly. rename( $staged_dir, $webapp_dir ) or die "Could not move “$staged_dir” to “$webapp_dir”: $!\n"; return 1; } 1;