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
4603e31d
"git@web.lueluesay.top:root/oh-my-zsh.git" did not exist on "bc79f61901c6cd2be5b0dbbe55c258a2b0e1f425"
Commit
4603e31d
authored
Jul 30, 2018
by
Igor Pecovnik
Browse files
Add dependency (Docker) check for Mayan EDMS
parent
46c4f471
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
4603e31d
...
@@ -179,15 +179,17 @@ function check_status
...
@@ -179,15 +179,17 @@ function check_status
alive_port
"Client/server backup system"
"51413"
"boolean"
alive_port
"Client/server backup system"
"51413"
"boolean"
LIST
+=
(
"UrBackup"
"
$DESCRIPTION
"
"
$URBACKUP_STATUS
"
)
LIST
+=
(
"UrBackup"
"
$DESCRIPTION
"
"
$URBACKUP_STATUS
"
)
# Mayan EDMS
curl
--
output
/
dev
/
null
--
silent
--
head
--
fail
http
://
localhost
/
authentication
/
login
/?
next
=
MAYAN_STATUS
=
$
([[
$
?
-
eq
0
]]
&&
echo
"on"
||
echo
"off"
)
LIST
+=
(
"Mayan EDMS"
"Electronic vault for your documents"
"
$MAYAN_STATUS
"
)
# Docker
# Docker
DOCKER_STATUS
=
"$((check_if_installed docker-ce) && echo "
on
" || echo "
off
" )"
DOCKER_STATUS
=
"$((check_if_installed docker-ce) && echo "
on
" || echo "
off
" )"
LIST
+=
(
"Docker"
"Run applications by using containers"
"
$DOCKER_STATUS
"
)
LIST
+=
(
"Docker"
"Run applications by using containers"
"
$DOCKER_STATUS
"
)
# Mayan EDMS docker install
if
[[
"
$DOCKER_STATUS
"
==
"on"
]];
then
curl
--
output
/
dev
/
null
--
silent
--
head
--
fail
http
://
localhost
/
authentication
/
login
/?
next
=
MAYAN_STATUS
=
$
([[
$
?
-
eq
0
]]
&&
echo
"on"
||
echo
"off"
)
LIST
+=
(
"Mayan EDMS"
"Electronic vault for your documents"
"
$MAYAN_STATUS
"
)
fi
# ISPconfig
# ISPconfig
ISPCONFIG_STATUS
=
"$([[ -d /usr/local/ispconfig ]] && echo "
on
" || echo "
off
" )"
ISPCONFIG_STATUS
=
"$([[ -d /usr/local/ispconfig ]] && echo "
on
" || echo "
off
" )"
LIST
+=
(
"ISPConfig"
"SMTP mail, IMAP, POP3 & LAMP/LEMP web server"
"
$ISPCONFIG_STATUS
"
)
LIST
+=
(
"ISPConfig"
"SMTP mail, IMAP, POP3 & LAMP/LEMP web server"
"
$ISPCONFIG_STATUS
"
)
...
...
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