diff --git a/16.04/nginx_add_site.sh b/16.04/nginx_add_site.sh index eb593df..ab1a33c 100755 --- a/16.04/nginx_add_site.sh +++ b/16.04/nginx_add_site.sh @@ -38,6 +38,10 @@ cat ${CURRENT_DIR}/nginx_site_conf.tpl | ln -sf /etc/nginx/sites-available/${project}.conf /etc/nginx/sites-enabled/${project}.conf +ansi -n --bold --green "配置文件创建成功"; + mkdir -p ${project_dir} && chown -R ${WWW_USER}.${WWW_USER_GROUP} ${project_dir} systemctl restart nginx.service + +ansi -n --bold --green "Nginx 重启成功"; diff --git a/download.sh b/download.sh index c9aa9a2..bec5eaa 100755 --- a/download.sh +++ b/download.sh @@ -24,7 +24,7 @@ echo -e "${green}安装脚本位于: ${HOME}/laravel-ubuntu-init${nc}" [ $(id -u) != "0" ] && { source ${HOME}/laravel-ubuntu-init/common/ansi.sh - ansi -n --bold --bg-yellow "发现当前账户并非 root,请用 root 账户执行安装脚本" + ansi -n --bold --bg-yellow --black "当前账户并非 root,请用 root 账户执行安装脚本(使用命令:sudo -H -s 切换为 root)" } || { bash ./laravel-ubuntu-init/16.04/install.sh }