diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index 9152c0ef..a9f5306c 100755 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -87,13 +87,13 @@ fi echo "Enter git" cd "${WEB_ROOT}""${WEB_NAME}" -sudo -u "${WWW_USER}" bin/gpm install themer +sudo -u "${WWW_USER}" php7.4 bin/gpm install themer # https://github.com/sommerregen/grav-plugin-themer -sudo -u "${WWW_USER}" bin/gpm install tagcloud +sudo -u "${WWW_USER}" php7.4 bin/gpm install tagcloud # https://github.com/Perlkonig/grav-plugin-tagcloud -sudo -u "${WWW_USER}" bin/gpm install form +sudo -u "${WWW_USER}" php7.4 bin/gpm install form sudo -u "${WWW_USER}" sed -i 's/quark/disroot/g' "${YAML}" # Add Grav config (the second extra false should be set to true, but it creates an error in Grav ("Trying to access array offset on value of type null") @@ -153,4 +153,13 @@ if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector/grav-plugin- sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"grav-plugin-language-selector "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector fi +# Add Privacy pages in GRAV +if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp ]; then + sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"privacy_policy "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp +fi + +# Add Changelog pages in GRAV +if [ ! -d "${WEB_ROOT}""${WEB_NAME}"/user/pages/12.changelog/_main ]; then + sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"changelog "${WEB_ROOT}""${WEB_NAME}"/user/pages/12.changelog/_main +fi exit 0