forked from Disroot/Howto
Merge branch 'vagrant-howto' of Disroot/Howto into master
This commit is contained in:
commit
2604e83b2c
1
vagrant/Vagrantfile
vendored
1
vagrant/Vagrantfile
vendored
|
@ -20,6 +20,7 @@ Vagrant.configure("2") do |config|
|
||||||
howto_disroot_lan.vm.provision :shell, path: "bootstrap.sh"
|
howto_disroot_lan.vm.provision :shell, path: "bootstrap.sh"
|
||||||
howto_disroot_lan.vm.synced_folder "../pages/", "/var/www/pages", owner: "www-data", group: "www-data"
|
howto_disroot_lan.vm.synced_folder "../pages/", "/var/www/pages", owner: "www-data", group: "www-data"
|
||||||
howto_disroot_lan.vm.synced_folder "../themes/", "/var/www/themes", owner: "www-data", group: "www-data"
|
howto_disroot_lan.vm.synced_folder "../themes/", "/var/www/themes", owner: "www-data", group: "www-data"
|
||||||
|
howto_disroot_lan.vm.synced_folder "../../grav-plugin-language-selector", "/var/www/grav-plugin-language-selector", owner: "www-data", group: "www-data"
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,9 +47,9 @@ sudo -u "${WWW_USER}" composer install --no-dev -o
|
||||||
sudo chown -R ${WWW_USER}:${WWW_USER} "${WEB_ROOT}"
|
sudo chown -R ${WWW_USER}:${WWW_USER} "${WEB_ROOT}"
|
||||||
sudo chmod 775 -R bin/
|
sudo chmod 775 -R bin/
|
||||||
sudo -u "${WWW_USER}" bin/grav install
|
sudo -u "${WWW_USER}" bin/grav install
|
||||||
sudo -u "${WWW_USER}" bin/gpm install language-selector
|
|
||||||
sudo -u "${WWW_USER}" bin/gpm install form
|
sudo -u "${WWW_USER}" bin/gpm install form
|
||||||
sudo -u "${WWW_USER}" bin/gpm install simplesearch
|
sudo -u "${WWW_USER}" bin/gpm install simplesearch
|
||||||
|
sudo -u "${WWW_USER}" bin/gpm install relatedpages
|
||||||
sudo -u "${WWW_USER}" sed -i 's/quark/grav-theme-howto/g' "${YAML}"
|
sudo -u "${WWW_USER}" sed -i 's/quark/grav-theme-howto/g' "${YAML}"
|
||||||
|
|
||||||
# Add Grav config
|
# Add Grav config
|
||||||
|
@ -84,4 +84,7 @@ chown "${WWW_USER}":"${WWW_USER}" -R "${WEB_ROOT}""${WEB_NAME}"/user/pages
|
||||||
#Add Disroot theme in GRAV
|
#Add Disroot theme in GRAV
|
||||||
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"/themes/grav-theme-howto "${WEB_ROOT}""${WEB_NAME}"/user/themes/grav-theme-howto
|
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"/themes/grav-theme-howto "${WEB_ROOT}""${WEB_NAME}"/user/themes/grav-theme-howto
|
||||||
|
|
||||||
|
#Add language-selector in GRAV
|
||||||
|
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"/grav-plugin-language-selector "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue