Skip to content

Instantly share code, notes, and snippets.

@MeenachiSundaram
Last active January 25, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MeenachiSundaram/daf61b3c0e80585473d6f4275b31afe0 to your computer and use it in GitHub Desktop.
Save MeenachiSundaram/daf61b3c0e80585473d6f4275b31afe0 to your computer and use it in GitHub Desktop.
grav docker file with multiple domain entrypoint
#!/bin/bash
for file in $( ls /etc/nginx/sites-available/ )
do
#mkdir -p /home/grav/domains/$file
unzip -q /home/grav/grav-admin.zip -d /tmp/
mv /tmp/*grav* /home/grav/domains/$file
ln -sF /etc/nginx/sites-available/$file /etc/nginx/sites-enabled/$file
done
chown -R www-data:www-data /home/grav/
service php7.0-fpm start && service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment