|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /home/elvh3918/public_html/tenant/.git/hooks/ |
#!/bin/bash
# post-receive Copyright 2018 cPanel, Inc.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
branch=$(/usr/local/cpanel/3rdparty/bin/git branch | awk '$1 == "*"{print $2}')
while read oldrev newrev ref
do
if [ "x$ref" == "xrefs/heads/$branch" ]
then
echo "Recieved update on checked-out branch, queueing deployment."
(cd .. ; /usr/bin/uapi VersionControlDeployment create repository_root=$PWD)
fi
done < /dev/stdin