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
2834366d
"git@web.lueluesay.top:root/oh-my-zsh.git" did not exist on "45d640baee42953fe1f749fad7c195823e64c67e"
Commit
2834366d
authored
Nov 07, 2014
by
Igor Pečovnik
Browse files
bugfixes
parent
40cb4ba0
Changes
1
Show whitespace changes
Inline
Side-by-side
install.sh
View file @
2834366d
...
@@ -25,7 +25,7 @@ fi
...
@@ -25,7 +25,7 @@ fi
# What do we need anyway
# What do we need anyway
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get
-y
upgrade
debconf-apt-progress
--
apt-get
-y
upgrade
debconf-apt-progress
--
apt-get
-y
install
dnsutils unzip whiptail git build-essential alsa-base alsa-utils stunnel4 html2text
debconf-apt-progress
--
apt-get
-y
install
debconf-utils
dnsutils unzip whiptail git build-essential alsa-base alsa-utils stunnel4 html2text
#--------------------------------------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------------------------------------
SECTION
=
"Basic configuration"
SECTION
=
"Basic configuration"
...
@@ -54,44 +54,47 @@ whiptail --ok-button "Install" --title "Debian micro home server installation (c
...
@@ -54,44 +54,47 @@ whiptail --ok-button "Install" --title "Debian micro home server installation (c
"Temper"
"USB temperature sensor"
off
\
"Temper"
"USB temperature sensor"
off
\
"Transmission"
"Torrent downloading"
off
\
"Transmission"
"Torrent downloading"
off
\
"ISPConfig"
"WWW, PHP, SQL, SMTP, IMAP, POP3"
off 2>results
"ISPConfig"
"WWW, PHP, SQL, SMTP, IMAP, POP3"
off 2>results
while
read
choice
while
read
choice
do
do
if
[[
$choice
==
"WWW Apache"
]]
;
then
count
=
$[
count+1]
;
fi
case
$choice
in
if
[[
$choice
==
"WWW Nginx"
]]
;
then
count
=
$[
count+1]
;
fi
"Samba"
)
ins_samba
=
"true"
;;
"TV headend"
)
ins_tvheadend
=
"true"
;;
"BitTorrent Sync"
)
ins_btsync
=
"true"
;;
"SoftEther VPN server"
)
ins_vpn_server
=
"true"
;;
"CUPS"
)
ins_cups
=
"true"
;;
"Scanner"
)
ins_scaner_and_scanbuttons
=
"true"
;;
"Temper"
)
ins_temper
=
"true"
;;
"Transmission"
)
ins_transmission
=
"true"
;;
"ISPConfig"
)
ins_ispconfig
=
"true"
;;
*
)
;;
esac
done
< results
done
< results
if
[[
$count
==
2
]]
;
then
echo
-e
"
\e
[31mERROR
\e
[0m Please choose Nginx either Apache. Can't run both!"
;
exit
;
fi
while
read
choice
if
[[
"
$ins_samba
"
==
"true"
]]
;
then
install_samba
;
fi
do
if
[[
"
$ins_tvheadend
"
==
"true"
]]
;
then
install_tvheadend
;
fi
case
$choice
in
if
[[
"
$ins_btsync
"
==
"true"
]]
;
then
install_btsync
;
fi
"Samba"
)
install_samba
if
[[
"
$ins_vpn_server
"
==
"true"
]]
;
then
install_vpn_server
;
fi
;;
if
[[
"
$ins_cups
"
==
"true"
]]
;
then
install_cups
;
fi
"CUPS"
)
install_cups
if
[[
"
$ins_scanner_and_scanbuttons
"
==
"true"
]]
;
then
install_scaner_and_scanbuttons
;
fi
;;
if
[[
"
$ins_temper
"
==
"true"
]]
;
then
install_temper
;
fi
"Scanner"
)
install_scaner_and_scanbuttons
if
[[
"
$ins_transmission
"
==
"true"
]]
;
then
install_transmission
;
fi
;;
if
[[
"
$ins_ispconfig
"
==
"true"
]]
;
then
"BitTorrent Sync"
)
install_btsync
install_basic
;;
install_DashNTP
"TV headend"
)
install_tvheadend
install_MySQL
;;
install_MySQLDovecot
"SoftEther VPN server"
)
install_vpn_server
install_Virus
;
;;
"Temper"
)
install_temper
;;
"Transmission"
)
install_transmission
;;
"ISPConfig"
)
install_basic
;
install_DashNTP
;
install_MySQL
;
install_MySQLDovecot
;
install_Virus
;
if
(
whiptail
--no-button
"Apache"
--yes-button
"NginX"
--title
"Choose webserver platform"
--yesno
"ISPConfig can run on both."
7 78
)
then
if
(
whiptail
--no-button
"Apache"
--yes-button
"NginX"
--title
"Choose webserver platform"
--yesno
"ISPConfig can run on both."
7 78
)
then
server
=
"nginx"
install_NginX
install_NginX
else
else
server
=
"apache"
install_Apache
install_Apache
fi
fi
create_ispconfig_configuration
install_PureFTPD
;
install_Fail2BanDovecot
;
install_Fail2BanRulesDovecot
;
install_ISPConfig
install_PureFTPD
;
install_Fail2BanDovecot
;
install_Fail2BanRulesDovecot
;
install_ISPConfig
;;
fi
*
)
;;
esac
done
< results
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