Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
c240b36c
Commit
c240b36c
authored
Apr 03, 2017
by
Igor Pecovnik
Browse files
Optimizing
parent
96826506
Changes
1
Hide whitespace changes
Inline
Side-by-side
softy
View file @
c240b36c
...
@@ -200,6 +200,7 @@ if !(grep -qs tvheadend "/etc/apt/sources.list.d/tvheadend.list");then
...
@@ -200,6 +200,7 @@ if !(grep -qs tvheadend "/etc/apt/sources.list.d/tvheadend.list");then
echo "deb https://dl.bintray.com/tvheadend/deb $distribution stable" >> /etc/apt/sources.list.d/tvheadend.list
echo "deb https://dl.bintray.com/tvheadend/deb $distribution stable" >> /etc/apt/sources.list.d/tvheadend.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 >/dev/null 2>
&
1
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 >/dev/null 2>
&
1
fi
fi
debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt-get update
install_packet "libssl-doc libssl1.0.0 zlib1g-dev tvheadend xmltv-util"
install_packet "libssl-doc libssl1.0.0 zlib1g-dev tvheadend xmltv-util"
install -m 755 scripts/tv_grab_file /usr/bin/tv_grab_file
install -m 755 scripts/tv_grab_file /usr/bin/tv_grab_file
...
@@ -258,6 +259,7 @@ install_vpn_server (){
...
@@ -258,6 +259,7 @@ install_vpn_server (){
#------------------------------------------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------------------------------------------
cd /tmp
cd /tmp
PREFIX="http://www.softether-download.com/files/softether/"
PREFIX="http://www.softether-download.com/files/softether/"
nstall_packet "debconf-utils unzip build-essential html2text apt-transport-https" "Downloading basic packages"
URL=$(wget -q $PREFIX -O - | html2text | grep rtm | awk ' { print $(NF) }' | tail -1)
URL=$(wget -q $PREFIX -O - | html2text | grep rtm | awk ' { print $(NF) }' | tail -1)
SUFIX="${URL/-tree/}"
SUFIX="${URL/-tree/}"
if [ "$(dpkg --print-architecture | grep armhf)" != "" ]; then
if [ "$(dpkg --print-architecture | grep armhf)" != "" ]; then
...
@@ -268,7 +270,7 @@ DLURL=$PREFIX$URL"/Linux/SoftEther_VPN_Server/32bit_-_Intel_x86/softether-vpnser
...
@@ -268,7 +270,7 @@ DLURL=$PREFIX$URL"/Linux/SoftEther_VPN_Server/32bit_-_Intel_x86/softether-vpnser
fi
fi
wget -q $DLURL -O - | tar -xz
wget -q $DLURL -O - | tar -xz
cd vpnserver
cd vpnserver
make i_read_and_agree_the_license_agreement >>
$logfile
make i_read_and_agree_the_license_agreement >>
/dev/null
cd ..
cd ..
cp -R vpnserver /usr/local
cp -R vpnserver /usr/local
cd /usr/local/vpnserver/
cd /usr/local/vpnserver/
...
@@ -559,7 +561,7 @@ read DUMMY
...
@@ -559,7 +561,7 @@ read DUMMY
DEBIAN_FRONTEND=noninteractive apt-get install -y dbconfig-common
DEBIAN_FRONTEND=noninteractive apt-get install -y dbconfig-common
debconf-apt-progress -- apt-get install -y phpmyadmin
debconf-apt-progress -- apt-get install -y phpmyadmin
/etc/init.d/php5-fpm restart >> /dev/null
/etc/init.d/php5-fpm restart
|| service php7.0-fpm reload
>> /dev/null
}
}
...
@@ -602,7 +604,7 @@ install_Fail2BanDovecot() {
...
@@ -602,7 +604,7 @@ install_Fail2BanDovecot() {
#------------------------------------------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------------------------------------------
# Install fail2ban
# Install fail2ban
#------------------------------------------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------------------------------------------
install_packet "fail2ban" "Install fail2ban"
install_packet "fail2ban
ufv
" "Install fail2ban
and UFW Firewall
"
cat > /etc/fail2ban/jail.local
<
<"
EOF
"
cat > /etc/fail2ban/jail.local
<
<"
EOF
"
[
pureftpd
]
[
pureftpd
]
...
@@ -622,7 +624,7 @@ maxretry = 5
...
@@ -622,7 +624,7 @@ maxretry = 5
[
sasl
]
[
sasl
]
enabled =
true
enabled =
true
port =
smtp
port =
smtp
filter =
sasl
filter =
postfix-
sasl
logpath =
/var/log/mail.log
logpath =
/var/log/mail.log
maxretry =
3
maxretry =
3
EOF
EOF
...
@@ -676,7 +678,7 @@ fi
...
@@ -676,7 +678,7 @@ fi
# Install basic stuff
# Install basic stuff
#
#
apt-get -y -qq --no-install-recommends install dialog whiptail lsb-release bc expect
apt-get -y -qq --no-install-recommends install dialog whiptail lsb-release bc expect
html2text
# gather some info
# gather some info
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment