Fixing sources

This commit is contained in:
yalh76 2020-10-31 14:33:19 +01:00
parent 0afca4b3e2
commit 96e82840fb
2 changed files with 7 additions and 3 deletions

View file

@ -87,7 +87,9 @@ ynh_script_progression --message="Setting up source files..."
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git clone $source $final_path git clone $source $final_path
pushd "$final_path"
git checkout $COMMIT git checkout $COMMIT
popd
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION

View file

@ -88,8 +88,10 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
pushd "$final_path"
git pull git pull
git checkout $COMMIT git checkout $COMMIT
popd
fi fi
#================================================= #=================================================