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

17 lines
380 B
Text

%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