Skip to content

Commit

Permalink
提示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
leo108 committed Aug 10, 2018
1 parent 456d656 commit 02e4918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 16.04/nginx_add_site.sh
Expand Up @@ -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 重启成功";
2 changes: 1 addition & 1 deletion download.sh
Expand Up @@ -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
}
Expand Down

0 comments on commit 02e4918

Please sign in to comment.