BG5 commited on
Commit
abd46c3
·
verified ·
1 Parent(s): 8fbff34

Update init.sh

Browse files
Files changed (1) hide show
  1. init.sh +6 -6
init.sh CHANGED
@@ -85,17 +85,17 @@ cd /tmp/1panel-*
85
  sed -i '1 a function read()\n{\n return 0\n}\n' install.sh
86
  bash install.sh
87
  EOL
88
- chmod +x /tmp/install.sh
89
  if [[ -z "$PANEL_BASE_DIR" ]]; then
90
  export PANEL_BASE_DIR=/opt
91
  fi
92
  # 1Panel 官方安装命令
93
  # 来源:https://1panel.cn/docs/installation/online_installation/
94
- curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o /tmp/quick_start.sh
95
- sed -i 's/install\.sh/\/tmp\/install.sh/' /tmp/quick_start.sh
96
- bash /tmp/quick_start.sh
97
- rm -rf /tmp/install.sh
98
- rm -rf /tmp/1panel-*
99
  fi
100
 
101
  if [[ ! -z "$1" ]]; then
 
85
  sed -i '1 a function read()\n{\n return 0\n}\n' install.sh
86
  bash install.sh
87
  EOL
88
+ chmod +x /app/install.sh
89
  if [[ -z "$PANEL_BASE_DIR" ]]; then
90
  export PANEL_BASE_DIR=/opt
91
  fi
92
  # 1Panel 官方安装命令
93
  # 来源:https://1panel.cn/docs/installation/online_installation/
94
+ curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o /app/quick_start.sh
95
+ sed -i 's/install\.sh/\/tmp\/install.sh/' /app/quick_start.sh
96
+ bash /app/quick_start.sh
97
+ rm -rf /app/install.sh
98
+ rm -rf /app/1panel-*
99
  fi
100
 
101
  if [[ ! -z "$1" ]]; then