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
58aa33c7
Commit
58aa33c7
authored
Sep 27, 2018
by
root
Browse files
Few cosmetic fixes
parent
cf830561
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
58aa33c7
...
@@ -198,7 +198,7 @@ function check_status
...
@@ -198,7 +198,7 @@ function check_status
# PHPmyadmin
# PHPmyadmin
if
[[
$ISPCONFIG_STATUS
==
on
]];
then
if
[[
$ISPCONFIG_STATUS
==
on
]];
then
LIST_CONST
=
$
((
LIST_CONST
+
1
))
LIST_CONST
=
$
((
LIST_CONST
+
1
))
alive_port
"MYSQL administration"
"8081"
alive_port
"MYSQL administration"
"8081"
""
"/phpmyadmin"
PHPMYADMIN_STATUS
=
"on"
PHPMYADMIN_STATUS
=
"on"
LIST
+=
(
"PHPmyadmin"
"
$DESCRIPTION
"
"
$PHPMYADMIN_STATUS
"
)
LIST
+=
(
"PHPmyadmin"
"
$DESCRIPTION
"
"
$PHPMYADMIN_STATUS
"
)
fi
fi
...
@@ -290,7 +290,7 @@ echo ""
...
@@ -290,7 +290,7 @@ echo ""
alive_port
()
alive_port
()
{
{
#
#
# Displays URL to the service $1 on port $2 or just that is active if $3 = boolean
# Displays URL to the service $1 on port $2 or just that is active if $3 = boolean
$4 = path
#
#
DEFAULT_ADAPTER
=
$
(
ip
-
4
route
ls
|
grep
default
|
grep
-
Po
'(?<=dev )(\S+)'
)
DEFAULT_ADAPTER
=
$
(
ip
-
4
route
ls
|
grep
default
|
grep
-
Po
'(?<=dev )(\S+)'
)
LOCALIPADD
=
$
(
ip
-
4
addr
show
dev
$DEFAULT_ADAPTER
|
awk
'/inet/ {print $2}'
|
cut
-
d
'/'
-
f1
)
LOCALIPADD
=
$
(
ip
-
4
addr
show
dev
$DEFAULT_ADAPTER
|
awk
'/inet/ {print $2}'
|
cut
-
d
'/'
-
f1
)
...
@@ -298,9 +298,9 @@ if [[ -n $(netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".'$2'"') ]]; then
...
@@ -298,9 +298,9 @@ if [[ -n $(netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".'$2'"') ]]; then
if
[[
$
3
==
boolean
]];
then
if
[[
$
3
==
boolean
]];
then
DESCRIPTION
=
"$1 is \Z1active\Z0"
;
DESCRIPTION
=
"$1 is \Z1active\Z0"
;
elif
[[
$
3
==
ssl
]];
then
elif
[[
$
3
==
ssl
]];
then
DESCRIPTION
=
"Active on https://${LOCALIPADD}:\Z1$2\Z0"
;
DESCRIPTION
=
"Active on https://${LOCALIPADD}:\Z1$2\Z0
$4
"
;
else
else
DESCRIPTION
=
"Active on http://${LOCALIPADD}:\Z1$2\Z0"
;
DESCRIPTION
=
"Active on http://${LOCALIPADD}:\Z1$2\Z0
$4
"
;
fi
fi
else
else
DESCRIPTION
=
"$1"
;
DESCRIPTION
=
"$1"
;
...
@@ -1535,7 +1535,7 @@ while true; do
...
@@ -1535,7 +1535,7 @@ while true; do
LISTLENGHT=
"$((${#LIST[@]}/2))"
LISTLENGHT=
"$((${#LIST[@]}/2))"
exec
3
>
&
1
exec
3
>
&
1
selection=$(dialog --backtitle "$BACKTITLE" --title "Installing to $family $distribution" --colors --clear --cancel-label \
selection=$(dialog --backtitle "$BACKTITLE" --title "Installing to $family $distribution" --colors --clear --cancel-label \
"Exit" --checklist "\nChoose what you want to install:\n " $LIST_CONST 7
0
18 "${LIST[@]}" 2>
&
1 1>
&
3)
"Exit" --checklist "\nChoose what you want to install:\n " $LIST_CONST 7
1
18 "${LIST[@]}" 2>
&
1 1>
&
3)
exit_status=$?
exit_status=$?
exec 3>
&
-
exec 3>
&
-
case $exit_status in
case $exit_status in
...
...
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