2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-06-23 17:59:23 +02:00

Merge pull request #14 from nupplaphil/bugfix_friendica_script

Bugfixing friendica script
This commit is contained in:
Hypolite Petovan 2018-05-28 20:41:38 -04:00 committed by GitHub
commit 2ab4b541a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 13 deletions

View file

@ -96,8 +96,7 @@ friendica_help() {
# executes the Friendica console # executes the Friendica console
console() { console() {
cd $WORKDIR cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works) php $WORKDIR/bin/console.php "$@"
sh -c "php $WORKDIR/bin/console.php $@"
} }
# executes the composer.phar binary of Friendica # executes the composer.phar binary of Friendica

View file

@ -96,8 +96,7 @@ friendica_help() {
# executes the Friendica console # executes the Friendica console
console() { console() {
cd $WORKDIR cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works) php $WORKDIR/bin/console.php "$@"
sh -c "php $WORKDIR/bin/console.php $@"
} }
# executes the composer.phar binary of Friendica # executes the composer.phar binary of Friendica

View file

@ -96,8 +96,7 @@ friendica_help() {
# executes the Friendica console # executes the Friendica console
console() { console() {
cd $WORKDIR cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works) php $WORKDIR/bin/console.php "$@"
sh -c "php $WORKDIR/bin/console.php $@"
} }
# executes the composer.phar binary of Friendica # executes the composer.phar binary of Friendica

View file

@ -96,8 +96,7 @@ friendica_help() {
# executes the Friendica console # executes the Friendica console
console() { console() {
cd $WORKDIR cd $WORKDIR
# Todo starting a php-executable without quoting the arguments seems not secure (but is the only way it works) php $WORKDIR/bin/console.php "$@"
sh -c "php $WORKDIR/bin/console.php $@"
} }
# executes the composer.phar binary of Friendica # executes the composer.phar binary of Friendica

View file

@ -9,17 +9,21 @@ Never ever change a file/folder inside a directory without a `.` at the beginnin
This folder will get updated automatically based on the templates you want to change. This folder will get updated automatically based on the templates you want to change.
All changes in such folders will get overwritten during an update. All changes in such folders will get overwritten during an update.
# [`.bin`](https://github.com/friendica/docker/tree/master/.bin) # Basic files and folders
Most of the time you want to change one of the followed files.
## [`.bin`](https://github.com/friendica/docker/tree/master/.bin)
This directory holds the binary/shell files for docker images. This directory holds the binary/shell files for docker images.
They get copied into the docker images at `/usr/local/bin`. They get copied into the docker images at `/usr/local/bin`.
# [`.config`](https://github.com/friendica/docker/tree/master/.config) ## [`.config`](https://github.com/friendica/docker/tree/master/.config)
This directory holds the config files for docker images. This directory holds the config files for docker images.
They get copied into the docker images at `/usr/src/config`. They get copied into the docker images at `/usr/src/config`.
## `htconfig.php` ### `htconfig.php`
This file is based on the sample [`htconfig.php`](https://github.com/friendica/friendica/blob/559250b8b3a7a5d0e524d3e3e2d347d18d6c3a2a/htconfig.php) in the Friendica repository. This file is based on the sample [`htconfig.php`](https://github.com/friendica/friendica/blob/559250b8b3a7a5d0e524d3e3e2d347d18d6c3a2a/htconfig.php) in the Friendica repository.
@ -28,7 +32,7 @@ The differences:
- Removed all hard-coded DB settings - Removed all hard-coded DB settings
- Added environment variables for mailname, tz, language - Added environment variables for mailname, tz, language
# Templates & shell-scripts ## Templates & shell-scripts
- If you want to update/upgrade Dockerfiles, use the right `*.template` file for it. - If you want to update/upgrade Dockerfiles, use the right `*.template` file for it.
- If you want to update/change the behavior of **every** start of Docker-image, change `docker-entrypoint.sh` - If you want to update/change the behavior of **every** start of Docker-image, change `docker-entrypoint.sh`

View file

@ -123,7 +123,8 @@ You can preconfigure everything that is asked on the install page on first run.
**MYSQL/MariaDB**: **MYSQL/MariaDB**:
- `MYSQL_USERNAME` Username for the database user using mysql / mariadb. - `MYSQL_USERNAME` Username for the database user using mysql.
- `MYSQL_USER` Username for the database user using mariadb.
- `MYSQL_PASSWORD` Password for the database user using mysql / mariadb. - `MYSQL_PASSWORD` Password for the database user using mysql / mariadb.
- `MYSQL_DATABASE` Name of the database using mysql / mariadb. - `MYSQL_DATABASE` Name of the database using mysql / mariadb.
- `MYSQL_HOST` Hostname of the database server using mysql / mariadb. - `MYSQL_HOST` Hostname of the database server using mysql / mariadb.