Update UPDATE.sh

This commit is contained in:
Radovan Ječmenica
2025-03-24 13:48:35 +01:00
committed by GitHub
parent 434fb8a651
commit 3db40d456b

View File

@@ -17,11 +17,11 @@ $INSERT_TEXT" "$file"
echo "Text already exists in: $file, skipping update."
fi
fi
cd /home/"$user"
if docker --context "$user" ps --format '{{.Names}}' | grep "apache"; then
docker --context "$user" compose down apache
docker --context "$user" stop apache
docker --context "$user" rm apache
#docker --context "$user" stop apache
#docker --context "$user" rm apache
docker --context "$user" compose up -d apache
echo "Apache started for user: $user"