Skip to content
This repository was archived by the owner on Aug 13, 2022. It is now read-only.

Commit 73da181

Browse files
committed
v20201231 git update
0 parents  commit 73da181

31 files changed

Lines changed: 450 additions & 0 deletions

DNSMaster/centos6-vps

20.9 KB
Binary file not shown.

DNSMaster/debian-vps

23.2 KB
Binary file not shown.

DNSMaster/fedora-vps

24.4 KB
Binary file not shown.

DNSMaster/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Directory for dns plugin scripts

DNSMaster/ubuntuvps

16.2 KB
Binary file not shown.

DebianOCS-Panel

43.1 KB
Binary file not shown.

DebianOCS-Plugin

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
# Simple OCS Panel plugin script
3+
# by Bon-chan
4+
#######
5+
#######
6+
## Config ##
7+
############
8+
# Panel Directory
9+
myDir='/home/panel/html' # Avoid Backslashes
10+
# OCS Panel source code link
11+
# Must be a valid ocs panel zipfile
12+
mySrc='https://dropbox.com/testfile.zip'
13+
############
14+
############
15+
16+
if [[ $EUID -ne 0 ]]; then
17+
echo -e "[\e[31mError\e[0m] This script must be run as root, exiting..."
18+
exit 1
19+
fi
20+
21+
source /etc/os-release
22+
if [[ "$ID" != 'debian' ]]; then
23+
echo -e "[\e[31mError\e[0m] This script is for Debian instance only, exiting..."
24+
exit 1
25+
elif [[ "$VERSION_ID" != '9' ]]; then
26+
echo -e "[\e[31mError\e[0m] This script is for Debian Stretch distribution only, exiting..."
27+
exit 1
28+
fi
29+
30+
if [[ ! -e "$myDir" ]]; then
31+
echo -e "[\e[31mError\e[0m] Panel's Directory not found, exiting..."
32+
exit 1
33+
fi
34+
35+
srcStats="$(wget --spider -4qS "$mySrc" 2>&1 | grep "HTTP/" | awk '{print $2}')"
36+
if [[ "$srcStats" != '200' ]]; then
37+
echo -e "[\e[31mError\e[0m] Source code Download failed.\n Error code: \e[1;31m$srcStats\e[0m"
38+
exit 1
39+
fi
40+
41+
cd "$myDir"
42+
wget -4O src.zip "$mySrc"
43+
unzip -qq src.zip && rm -f src.zip
44+
45+
if [[ ! -e "$myDir/installation" ]]; then
46+
echo -e "[\e[31mError\e[0m] Source code you provided is not a valid OCS Panel src, exiting..."
47+
exit 1
48+
cd -
49+
fi
50+
cd -
51+
echo -e "\n\n Default Panel source code replaced successfully\n"
52+
echo -e ""
53+
exit 1

DebianSoftEther-Installer.gz

43.2 KB
Binary file not shown.

DebianVPS-Installer

83.2 KB
Binary file not shown.

FedoraVPS-Installer

73.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)