forked from Endelon-Hosting/CloudPanelApi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
14 lines (10 loc) · 772 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash
echo "Installing cloud panel api server"
mkdir /lib/cpapiserver/
curl -L -o /lib/cpapiserver/CloudPanelApi "https://github.com/Endelon-Hosting/CloudPanelApi/releases/latest/download/CloudPanelApi_linux_$(uname -m)"
curl -L -o /lib/cpapiserver/CloudPanelApi.pdb "https://github.com/Endelon-Hosting/CloudPanelApi/releases/latest/download/cpapiserver_linux_$(uname -m)"
curl -L -o /lib/cpapiserver/appsettings.json https://raw.githubusercontent.com/Endelon-Hosting/CloudPanelApi/main/appsettings.json
curl -L -o /etc/systemd/system/cpapiserver.service https://raw.githubusercontent.com/Endelon-Hosting/CloudPanelApi/main/cpapiserver.service
chmod 664 /etc/systemd/system/cpapiserver.service
chmod +x /lib/cpapiserver/CloudPanelApi
systemctl daemon-reload