Update init.sh
Browse files
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 /
|
| 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 /
|
| 95 |
-
sed -i 's/install\.sh/\/tmp\/install.sh/' /
|
| 96 |
-
bash /
|
| 97 |
-
rm -rf /
|
| 98 |
-
rm -rf /
|
| 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
|