daisycloud-core/tools/setup/common/daisy_global_var.sh
Zhijiang Hu e2e358b4f8 initial merge
Change-Id: Id7cef7826092e191654da872ee1e11c4c6f50ddf
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2016-03-30 14:07:23 +08:00

31 lines
718 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#1.最高全局变量可能会被所有其他脚本调用export后也可被子进程中的执行的脚本调用
#2.所有脚本中不得有和这些变量名字冲突的变量
#3.请不要给这里的全局变量随意赋值,有些初始化必须为空
#防止脚本重复被包含
if [ ! "$_GLOBAL_VAR_FILE" ];then
#daisy安装向导操作时间记录
export current_time=""
#daisy操作包括install、uninstall、clean、upgrade等
export operation=""
#安装中的具体模式
export mode=""
#yum命令封装
export daisy_yum=""
#daisy安装文件目录
export daisy_install_path="/home/daisy_install"
export systemd_path="/usr/lib/systemd/system"
export lsb_path="/etc/init.d"
#用户指定配置文件
#数据库用户名密码
export dbusername=root
export dbpassword=root
export _GLOBAL_VAR_FILE="daisy_global_var.sh"
fi