Commit 4603e31d authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Add dependency (Docker) check for Mayan EDMS

parent 46c4f471
...@@ -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" )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment