sh 一线drupal安装程序

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 一线drupal安装程序相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env bash

set -o errexit
set -o pipefail
set -o nounset

#Clear terminal screen so the about text can be read
clear

RED='\033[31m'
GREEN='\033[32m'
YELLOW='\033[33m'
RESET='\033[0m'


# TODO
# Check if using bash
# if test -z "$BASH_VERSION";
# then
#     printf "Using ${GREEN}$BASH_VERSION of bash, continuing.\n${RESET}"
# else
#     printf "${RED}Please run this script using bash, not sh or any other shell.\n${RESET}"
#     exit 1
# fi


#Extract a new Drupal 8 tar

curl -L https://www.drupal.org/download-latest/tar.gz | tar -xz --strip-components=1
#curl -L https://www.drupal.org/download-latest/tar.gz | tar -xz --strip-components=1

wait

printf "
${GREEN}
####
# This simple script starts a Drupal 8 checked out from head.
#
####
${RESET}"
while true; do
    read -p "Continue? (y/n): " INSTALL
    case $INSTALL in
        [Yy]* ) printf "${GREEN}# Continuing \n#### \n${RESET}"; break;;
        [Nn]* ) exit;;
        * ) echo "Please answer y or n.";;
    esac
done

php core/scripts/drupal quick-start

printf "
${GREEN}

以上是关于sh 一线drupal安装程序的主要内容,如果未能解决你的问题,请参考以下文章

sh 使用Homebrew在万神殿为Drupal安装Drush和Terminus

sh 清除Drupal缓存

sh 应用Drupal补丁

sh Drupal 8 Docker命令

sh 修复更新drupal 8

sh Composer Create Drupal Env