From a0e6b9025110e9680d18165008dd28ed6e0dfe52 Mon Sep 17 00:00:00 2001 From: meaz Date: Tue, 14 Jan 2020 18:37:26 +0100 Subject: [PATCH] install language selector plugin --- vagrant/Vagrantfile | 1 + vagrant/bootstrap.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 6e21b639a..2ba245bc0 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -20,6 +20,7 @@ Vagrant.configure("2") do |config| 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 "../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 diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index 83852835f..8bd2cc7cb 100755 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -47,7 +47,6 @@ sudo -u "${WWW_USER}" composer install --no-dev -o sudo chown -R ${WWW_USER}:${WWW_USER} "${WEB_ROOT}" sudo chmod 775 -R bin/ 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 simplesearch sudo -u "${WWW_USER}" sed -i 's/quark/grav-theme-howto/g' "${YAML}" @@ -84,4 +83,7 @@ chown "${WWW_USER}":"${WWW_USER}" -R "${WEB_ROOT}""${WEB_NAME}"/user/pages #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 +#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