Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
check if nginx-partials are in place before installing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Passos committed Oct 26, 2017
1 parent c7b6ae1 commit a8029bf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/craft_do_forge_recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ install_imager_req () {
# Install the nginx partials from https:/nystudio107/nginx-craft
install_nginx_partials () {

git clone https:/nystudio107/nginx-craft.git nginx-craft;
cp -R nginx-craft/nginx-partials /etc/nginx;
rm -rf nginx-craft;
if [ ! -d "/etc/nginx/nginx-partials" ]; then
print_msg "Installing nginx-partials"
git clone https:/nystudio107/nginx-craft.git nginx-craft;
cp -R nginx-craft/nginx-partials /etc/nginx;
rm -rf nginx-craft;
fi

success_msg "nginx-partials installed!"

}

Expand Down

0 comments on commit a8029bf

Please sign in to comment.