From d39537776081e5dca0fb11d5d37eb523378b7a2e Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Wed, 29 May 2024 07:55:55 +0200 Subject: [PATCH] UPD depot version 0.9.20 --- depot.xml | 4 ++-- script/zipdepot | 34 +++++++++++++++++++++++++++++++++- zip/depot.zip | 4 ++-- 3 files changed, 37 insertions(+), 5 deletions(-) diff --git a/depot.xml b/depot.xml index b385f8b..7730c70 100644 --- a/depot.xml +++ b/depot.xml @@ -1,13 +1,13 @@ - com_depot + Depot KW4NZ 2024-05-26 (C) KW4NZ Thomas Kuschel GPL v2 +; see LICENSE.md thomas@kuschel.at https://kuschel.at - 0.9.17 + 0.9.20 COM_DEPOT_XML_DESCRIPTION KW4NZ\Component\Depot diff --git a/script/zipdepot b/script/zipdepot index faa0082..a36a535 100755 --- a/script/zipdepot +++ b/script/zipdepot @@ -1,4 +1,7 @@ -#/bin/bash +#!/bin/bash + +# Joomla installation at: +JOOMLADIR="/srv/http/joomla5" # this is a script file to generate a zip package from this source: cd "$(dirname "$0")" @@ -37,4 +40,33 @@ else echo "Keep the version" fi mkdir -p zip +# Generate ZIP file without directories zip, script zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\* + +# Install this extension to the active Joomla installation per CLI + +read -p "Do you want to install this to the Joomla installation at \"$JOOMLADIR\"? (Y/n)" -n 1 -r +echo # (optional) move to a new line +if [[ $REPLY =~ ^[Nn]$ ]] +then + echo "Extension was not installed" +else + # Find the CLI php procedure, file joomla.php in cli must exists. + FILE="${JOOMLADIR}/cli/joomla.php" + if [ -f "$FILE" ] + then + echo "$FILE exists." + php $FILE --version + php $FILE --help + php $FILE list + # sudo -g http php $FILE core:update:check + php $FILE core:update:check + pwd + # sudo -u http php $FILE extension:install --path zip/depot.zip -v + php $FILE extension:install --path zip/depot.zip -v + php $FILE extension:list --type component + else + echo "$FILE does not exists." + exit 9 + fi +fi diff --git a/zip/depot.zip b/zip/depot.zip index b05abcf..e4e926e 100644 --- a/zip/depot.zip +++ b/zip/depot.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c74d0158b8c0daf42e0faa7a4bf0b927c5957a4fe021ed9c44737c19fb91cf50 -size 88205 +oid sha256:683e2cc43097985d24f461fc19520a5dab1bf71e08f7b7197c2486d43d8a1da8 +size 88203