mirror of
https://github.com/friendica/docker
synced 2025-01-19 21:41:14 +01:00
Bugfix friendica console
command
- added to every installation type - fixing the function call parameters
This commit is contained in:
parent
987edd5dae
commit
fff22153e4
7 changed files with 63 additions and 70 deletions
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
|
@ -95,8 +95,10 @@ friendica_help() {
|
||||||
|
|
||||||
# executes the Friendica console
|
# executes the Friendica console
|
||||||
console() {
|
console() {
|
||||||
cd $WORKDIR
|
if [ -f $WORKDIR/bin/console.php ]; then
|
||||||
php $WORKDIR/bin/console.php "$@"
|
cd $WORKDIR
|
||||||
|
php $WORKDIR/bin/console.php "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# executes the composer.phar binary of Friendica
|
# executes the composer.phar binary of Friendica
|
||||||
|
@ -157,15 +159,13 @@ install() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Installing Friendica'
|
log 'Installing Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
composer install
|
||||||
composer "install"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
if [ ! -f ${WORKDIR}/.htconfig.php ] &&
|
||||||
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
[ -f ${SOURCEDIR}/config/htconfig.php ] &&
|
||||||
"$AUTOINSTALL" == "true"; then
|
"$AUTOINSTALL" == "true"; then
|
||||||
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
run_as "cp ${SOURCEDIR}/config/htconfig.php ${WORKDIR}/.htconfig.php"
|
||||||
console "autoinstall -f .htconfig.php"
|
console autoinstall -f .htconfig.php
|
||||||
# TODO Workaround because of a strange permission issue
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr ${WORKDIR}/view/smarty3/compiled
|
rm -fr ${WORKDIR}/view/smarty3/compiled
|
||||||
fi
|
fi
|
||||||
|
@ -181,10 +181,9 @@ update() {
|
||||||
copy_sources
|
copy_sources
|
||||||
|
|
||||||
log 'Upgrading Friendica'
|
log 'Upgrading Friendica'
|
||||||
if echo "$FRIENDICA_VERSION" | grep -Eq '^.*(\-dev|-rc)'; then
|
|
||||||
composer "install"
|
composer install
|
||||||
fi
|
console dbstructure update
|
||||||
console "dbstructure update"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendmail() {
|
sendmail() {
|
||||||
|
|
Loading…
Reference in a new issue