mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Initial version of devcontainer for friendica
This commit is contained in:
parent
b76ba423f2
commit
5b20bfc94c
14 changed files with 363 additions and 0 deletions
28
.devcontainer/postCreateFriendicaSetup.sh
Executable file
28
.devcontainer/postCreateFriendicaSetup.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
source $workspaceFolder/.devcontainer/devcontainer.env
|
||||
|
||||
# Setup Friendica
|
||||
echo ">>> Friendica Setup"
|
||||
envsubst < $workspaceFolder/.devcontainer/include/autoinstall.config.php > /tmp/autoinstall.config.php
|
||||
|
||||
cd $DocumentRoot
|
||||
|
||||
# copy the .htaccess-dist file to .htaccess so that rewrite rules work
|
||||
cp $DocumentRoot/.htaccess-dist $DocumentRoot/.htaccess
|
||||
|
||||
bin/composer.phar --no-dev install
|
||||
|
||||
# install friendica
|
||||
bin/console autoinstall -f /tmp/autoinstall.config.php
|
||||
|
||||
# add users
|
||||
# (disable a bunch of validation because this is a dev install, deh, it needs invalid emails and stupid passwords)
|
||||
bin/console config system disable_email_validation 1
|
||||
bin/console config system disable_password_exposed 1
|
||||
bin/console user add "$ADMIN_NICK" "$ADMIN_NICK" "$ADMIN_NICK@friendica.local" en http://friendica.local/profile/$ADMIN_NICK
|
||||
bin/console user password "$ADMIN_NICK" "$ADMIN_PASSW"
|
||||
bin/console user add "$USER_NICK" "$USER_NICK" "$USER_NICK@friendica.local" en http://friendica.local/profile/$USER_NICK
|
||||
bin/console user password "$USER_NICK" "$USER_PASSW"
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue