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
2db190d6
Commit
2db190d6
authored
Nov 21, 2017
by
ThomasKaiser
Browse files
Minor fixes
parent
b850f520
Changes
1
Hide whitespace changes
Inline
Side-by-side
softy
View file @
2db190d6
...
...
@@ -11,7 +11,7 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
function
check_status
{
#------------------------------------------------------------------------------------------------------------------------------------------
# Chec
h
if service is already installed
# Chec
k
if service is already installed
#------------------------------------------------------------------------------------------------------------------------------------------
LIST
=
()
LIST_CONST
=
5
...
...
@@ -358,6 +358,7 @@ debconf-apt-progress -- apt-get update
read
HOSTNAME
</
etc
/
hostname
read
TZ
</
etc
/
timezone
debconf-set-selections
<<<
"
postfix
postfix
/
mailname
string
${
HOSTNAME
}"
debconf-set-selections
<<<
"
postfix
postfix
/
main_mailer_type
string
'
No
configuration
'"
SPACE_NEEDED=
$(apt-get
--assume-no
--allow-unauthenticated
--fix-missing
--no-install-recommends
install
openmediavault
postfix
dirmngr
2
>
/dev/null | awk -F" " '/additional disk space will be used/ {print $4}')
SPACE_AVAIL=$(df -k / | awk -F" " '/\/$/ {printf ("%0.0f",$4/1200); }')
if [ ${SPACE_AVAIL} -lt ${SPACE_NEEDED} ]; then
...
...
@@ -366,7 +367,8 @@ if [ ${SPACE_AVAIL} -lt ${SPACE_NEEDED} ]; then
fi
apt-get --allow-unauthenticated install openmediavault-keyring
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7AA630A1EDEE7D73
debconf-apt-progress -- apt-get -y --allow-unauthenticated --fix-missing --no-install-recommends install openmediavault postfix dirmngr
debconf-apt-progress -- apt-get -y --allow-unauthenticated --fix-missing --no-install-recommends \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install openmediavault postfix dirmngr
FILE="${TEMP_DIR}/omv_extras.deb"; wget "$OMV_EXTRAS_URL" -qO $FILE
&&
dpkg -i $FILE ; rm $FILE
# /usr/sbin/omv-update
debconf-apt-progress -- apt-get update
...
...
@@ -1094,7 +1096,7 @@ while true; do
if [[ "$selection" == *CUPS*
&&
"$CUPS_STATUS" != "on" ]]; then
install_cups
check_port
445
"CUPS"
check_port
631
"CUPS"
fi
if [[ "$selection" == *headend*
&&
"$TVHEADEND_STATUS" != "on" ]]; then
...
...
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