Last active
January 25, 2018 10:47
-
-
Save MeenachiSundaram/daf61b3c0e80585473d6f4275b31afe0 to your computer and use it in GitHub Desktop.
grav docker file with multiple domain entrypoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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