-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
27 lines (23 loc) · 946 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
ROUNDPANEL_INSTALLER_VERSION="1.0.0"
SENTORA_CORE_VERSION="1.0.1"
PANEL_PATH="/etc/sentora"
PANEL_DATA="/home"
PANEL_CONF="$PANEL_PATH/configs"
if [ -f /etc/sentora/panel/index.php ]; then
break;
else
apt-get install -y mysql-client
mkdir -p /etc/sentora/panel && mkdir -p /etc/sentora/configs
wget -nv -O roundpanel.zip https://github.com/rajpro/roundpanel/archive/$ROUNDPANEL_CORE_VERSION.zip
chown -R root:root $PANEL_PATH
unzip -oq sentora_core.zip -d $PANEL_PATH
/bin/cp -rf $PANEL_PATH/roundpanel-$ROUNDPANEL_CORE_VERSION/* $PANEL_PATH/panel/
rm roundpanel.zip
wget -nv -O sentora_preconfig.zip https://github.com/sentora/sentora-installers/archive/$SENTORA_INSTALLER_VERSION.zip
unzip -oq sentora_preconfig.zip
/bin/cp -rf sentora-installers-$SENTORA_INSTALLER_VERSION/preconf/* $PANEL_CONF
rm sentora_preconfig*
rm -rf sentora-*
rm -rf /etc/sentora/roundpanel-*
fi