INFO="\033[1;36m"
NORMAL="\033[0;39m"
if [ ! -f /etc/nginx/nginx.conf ]; then
   cp /etc/nginx/nginx.conf{.default,}
  printf "${INFO} /etc/nginx/nginx.conf created ${NORMAL}\n"
  printf "${INFO} Double check /etc/nginx/nginx.conf and adapted to your needs ${NORMAL}\n"
fi
if [ ! -d /srv/www ]; then
  mkdir -p /srv/www
  printf "${INFO} /srv/www created ${NORMAL}\n"
fi
if [ ! -f /srv/www/index.html ]; then
  cp -a /etc/nginx/html/* /srv/www/
  printf "${INFO} /srv/www/index.html created ${NORMAL}\n"
fi
if [ ! -L etc/systemd/system/multi-user.target.wants/nginx.service ];then
  mkdir -p etc/systemd/system/multi-user.target.wants
  ln -sf /usr/lib/systemd/system/nginx.service etc/systemd/system/multi-user.target.wants/nginx.service && \
  printf  \
  "${INFO} Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service -> /usr/lib/systemd/system/nginx.service${NORMAL}\n"
fi
