install language selector plugin
This commit is contained in:
parent
be9ed58aa6
commit
a0e6b90251
2 changed files with 4 additions and 1 deletions
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.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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue