Skip to content
Snippets Groups Projects
Commit 0c18ab4b authored by jurgenhaas's avatar jurgenhaas
Browse files

#72 Implement "l3d info"

parent 63098a2f
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ ADD configIdea.sh /usr/local/bin/.configIdea
ADD l3dComposer.php /usr/local/bin/.l3dComposer.php
ADD run/scripts/info /usr/local/bin/l3d
ADD run/scripts/version /usr/local/bin/version
ADD run/scripts/l3dnewversion /usr/local/bin/l3dnewversion
RUN echo "Install dorgflow" && \
cd /var/opt && \
......
......@@ -26,9 +26,9 @@ function infol3d() {
more .env
fi
else
echo -e "\\033[31m" ======================================== "\\033[0m"
echo -e "\\033[31m" Calling L3D inside of L3D is not useful. "\\033[0m"
echo -e "\\033[31m" ======================================== "\\033[0m"
echo -e "\\033[31m ======================================== \\033[0m"
echo -e "\\033[31m Calling L3D inside of L3D is not useful. \\033[0m"
echo -e "\\033[31m ======================================== \\033[0m"
fi
fi
sectionFooter
......
......@@ -19,18 +19,22 @@ if [[ "$UPDATE" == *"setup:${NEWVERSION} not found"* ]]; then
fi
echo "Self update to version ${NEWVERSION} succeeded!"
export L3DVERSION=${NEWVERSION}
export L3D_FORCE_UPDATE=0
/usr/local/bin/reset
echo ""
echo ""
echo ""
echo "================================================================"
echo "It's recommended to run"
echo "=================================================================="
echo "The cleanup process only removes unused and outdated components."
echo "If you also want to update the components of your current projects"
echo "you need to run"
echo ""
echo -e " \\033[31m l3d reset \\033[0m"
echo ""
echo " l3d reset"
echo "when the self-update has completed."
echo "=================================================================="
echo ""
echo "now, so that we can clean the legacy components properly."
echo "================================================================"
echo ""
echo ""
export L3DVERSION=${NEWVERSION}
export L3D_FORCE_UPDATE=0
/usr/local/bin/reset
......@@ -192,9 +192,9 @@ readEnv
# Validate PHP version
INSTALLED_PHP_VERSION=$(php -r "echo(substr(phpversion(),0,3));")
if [[ "$INSTALLED_PHP_VERSION" != "$PHP_VERSION" ]]; then
echo -e "\\033[31m" ============================================= "\\033[0m"
echo -e "\\033[31m" ERROR: PHP $INSTALLED_PHP_VERSION installed but $PHP_VERSION expected !!! "\\033[0m"
echo -e "\\033[31m" ============================================= "\\033[0m"
echo -e "\\033[31m ============================================= \\033[0m"
echo -e "\\033[31m ERROR: PHP $INSTALLED_PHP_VERSION installed but $PHP_VERSION expected !!! \\033[0m"
echo -e "\\033[31m ============================================= \\033[0m"
fi
if [[ "$COMPOSER_DOWNGRADE" == "1" ]]; then
composer self-update --1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment