Skip to content

Commit

Permalink
Merge pull request #12 from guardian/akash1810-patch-1
Browse files Browse the repository at this point in the history
create directory if needed in link-config
  • Loading branch information
akash1810 authored Jun 26, 2019
2 parents 0ce52dd + 3a1b676 commit 6ab5e02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/link-config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ if [[ ! -f ${FILE} ]]; then
echo "File $FILE not found"
exit 1
else
ln -fs ${FILE} ${NGINX_HOME}/servers/$(basename "$FILE")
DESTINATION_DIR=${NGINX_HOME}/servers
mkdir -p $DESTINATION_DIR
ln -fs ${FILE} $DESTINATION_DIR/$(basename "$FILE")
fi

# remove file (or symlink) from legacy `sites-enabled` directory if it exists
Expand Down

0 comments on commit 6ab5e02

Please sign in to comment.