Commit c38ad64d authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Added Docker install

parent 778a7f18
...@@ -164,6 +164,9 @@ URBACKUP_STATUS="$((check_if_installed urbackup-server || check_if_installed urb ...@@ -164,6 +164,9 @@ URBACKUP_STATUS="$((check_if_installed urbackup-server || check_if_installed urb
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" )
# Docker
DOCKER_STATUS="$((check_if_installed docker-ce) && echo "on" || echo "off" )"
LIST+=( "Docker" "Run applications by using containers" "$DOCKER_STATUS")
# ISPconfig # ISPconfig
ISPCONFIG_STATUS="$([[ -d /usr/local/ispconfig ]] && echo "on" || echo "off" )" ISPCONFIG_STATUS="$([[ -d /usr/local/ispconfig ]] && echo "on" || echo "off" )"
...@@ -1522,6 +1525,14 @@ while true; do ...@@ -1522,6 +1525,14 @@ while true; do
selection=${selection//\"Pi hole\"/} selection=${selection//\"Pi hole\"/}
fi fi
if [[ "$selection" == Docker && "$DOCKER_STATUS" != "on" ]]; then
curl -sSL https://get.docker.com | sh
systemctl enable docker
systemctl start docker
selection=${selection//\"Docker\"/}
fi
if [[ "$selection" == *Transmission* && "$TRANSMISSION_STATUS" != "on" ]]; then if [[ "$selection" == *Transmission* && "$TRANSMISSION_STATUS" != "on" ]]; then
install_transmission install_transmission
selection=${selection//Transmission/} selection=${selection//Transmission/}
......
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