When running
bin/console --help
in the current development version I get the following error on Debian Stable
bin/console: 5: bin/console: [[: not found
After that the call to bin/console.php
works as expected.
I just got the same problem. There is actually two errors, as far as I can see:
The error message in friendica is wrong:
The database update failed. Please run "php bin/console dbstructure update" from the command line and have a look at the errors that might appear.
php -f bin/console.php dbstructure update
instead, or bin/console dbstructure update
(but I better like the first version, which is more portable)bin/console
is a Bash script, but is declared as an sh scriptThe first part should be fixed in https://github.com/friendica/friendica/pull/4667
2,
bin/console
is a Bash script, but is declared as an sh script
This can be fixed by replacing the hash bang by #!/bin/bash
in bin/console
.
Most helpful comment
I just got the same problem. There is actually two errors, as far as I can see:
The error message in friendica is wrong:
php -f bin/console.php dbstructure update
instead, orbin/console dbstructure update
(but I better like the first version, which is more portable)bin/console
is a Bash script, but is declared as an sh script