dataset-formation/seed/site-formation/templates/site_update

18 lines
380 B
Text
Raw Normal View History

2023-02-14 13:56:28 +01:00
%echo "#!/bin/bash -e"
%from os.path import dirname
GIT_DIR=%%dirname(%%dirname(%%nginx_root))
REPO_DIR=%%dirname(%%nginx_root)
if [ ! -d $GIT_SITE/.git ]; then
if [ -d %%nginx_root ]; then
rm -rf %%nginx_root
fi
cd $GIT_DIR
git clone https://%%site_user_name:%%site_user_password@%%site_domain_name:3000/pedago/site.git
fi
cd $REPO_DIR
git pull
exit 0