Skip to content

Commit

Permalink
Update link-config
Browse files Browse the repository at this point in the history
Create `servers` directory if necessary.
  • Loading branch information
akash1810 authored Jun 25, 2019
1 parent 0ce52dd commit 3a1b676
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 3a1b676

Please sign in to comment.