Question Git commands and sub-command available in Plesk

fabrizioi

Basic Pleskian
Server operating system version
AlmaLinux 8.5
Plesk version and microupdate number
Plesk Obsidian 18.0.68 Update #2 Web Host Edition
Hi All,

I need post-deploy action in git , so I have do the following as explained here:

Plesk KB

Code:
cd /usr/local/psa/admin/sbin
curl -o update-chroot.sh
chmod 700 ./update-chroot.sh
mv /usr/local/psa/admin/sbin/update-chroot.sh /usr/local/psa/admin/sbin/update-chroot
/usr/local/psa/admin/sbin/update-chroot --help
/usr/local/psa/admin/sbin/update-chroot --add git
/usr/local/psa/admin/sbin/update-chroot --apply all
After that, under the root of the subscription example.com , I have enabled post-deploy action and create a file with exec permission post-deploy.sh .

Code:
git -v >> ./deploy.log
git submodule status >> ./deploy.log

git command is available , but the output of git submodule status is : git submodule is not a git command .

I have read this post on Plesk forum .

I need also this in order to support git sub-commands ?

Code:
update-chroot --add /usr/libexec/git-core/*

Any help is appreciated .
 
Back
Top