1 Star 0 Fork 4

zero / laravel-ubuntu-init

forked from leo108 / laravel-ubuntu-init 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
download.sh 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
leo108 提交于 2019-11-02 21:10 . 使用 Gitee 托管
#!/bin/bash
{ # this ensures the entire script is downloaded #
lsb_release -d | grep 'Ubuntu' >& /dev/null
[[ $? -ne 0 ]] && { echo "仅支持 Ubuntu 16.04 系统"; exit 1; }
DISTRO=$(lsb_release -c -s)
[[ ${DISTRO} -ne "xenial" ]] && { echo "仅支持 Ubuntu 16.04 系统"; exit 1; }
green="\e[1;32m"
nc="\e[0m"
echo -e "${green}===> 开始下载...${nc}"
cd $HOME
wget -q https://gitee.com/leo108/laravel-ubuntu-init/repository/archive/master.tar.gz -O laravel-ubuntu-init.tar.gz
rm -rf laravel-ubuntu-init
tar zxf laravel-ubuntu-init.tar.gz
rm -f laravel-ubuntu-init.tar.gz
echo -e "${green}===> 下载完毕${nc}"
echo ""
echo -e "${green}安装脚本位于: ${HOME}/laravel-ubuntu-init${nc}"
[ $(id -u) != "0" ] && {
source ${HOME}/laravel-ubuntu-init/common/ansi.sh
ansi -n --bold --bg-yellow --black "当前账户并非 root,请用 root 账户执行安装脚本(使用命令:sudo -H -s 切换为 root)"
} || {
bash ./laravel-ubuntu-init/16.04/install.sh
}
cd - > /dev/null
} # this ensures the entire script is downloaded #
1
https://gitee.com/zeroibc/laravel-ubuntu-init.git
git@gitee.com:zeroibc/laravel-ubuntu-init.git
zeroibc
laravel-ubuntu-init
laravel-ubuntu-init
master

搜索帮助