mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 17:42:48 +00:00
416af76e84
yarn ver 时,不再创建提交git tag; yarn pub 后,再创建提交git tag;
21 lines
584 B
Bash
21 lines
584 B
Bash
# 初始化 ./steedos 环境
|
|
|
|
# -f 参数判断 $file 是否存在
|
|
mnted_home_path="/pv_steedos_mnted"
|
|
init_flag_file="$mnted_home_path/.config/steedos/init_flag_file"
|
|
echo "check start"
|
|
if [ ! -f "$init_flag_file" ]; then
|
|
# 解压缩
|
|
|
|
echo "copy start"
|
|
cp -rf /app/.steedos/*.* $mnted_home_path
|
|
echo "copy end"
|
|
|
|
mkdir -p /pv_steedos_mnted/.config/steedos
|
|
mkdir -p ~/.config/steedos
|
|
# 声明...
|
|
echo "DON'T DELETE THIS FILE | 警告: steedos sass 云用户不要删除此文件" > $init_flag_file
|
|
else
|
|
echo "skip copy ...."
|
|
fi
|
|
echo "run end" |