2024-07-15 18:55:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
|
|
|
# Prepare the workspace files with the values from the devcontainer.env file
|
|
|
|
set -a
|
2024-07-16 17:12:26 +00:00
|
|
|
source $workspaceFolder/.devcontainer/.env
|
2024-07-15 18:55:37 +00:00
|
|
|
|
|
|
|
echo ">>> Development Setup"
|
|
|
|
sudo apt-get update
|
|
|
|
|
2024-08-06 14:12:50 +00:00
|
|
|
# VSCode debugger profile
|
|
|
|
mkdir -p .vscode && cp .devcontainer/launch.json .vscode/launch.json
|
|
|
|
|
2024-07-16 17:12:26 +00:00
|
|
|
envsubst < $workspaceFolder/.devcontainer/include/my.cnf > /home/vscode/.my.cnf
|
|
|
|
|
2024-07-15 18:55:37 +00:00
|
|
|
#Make the workspace directory the docroot
|
|
|
|
echo ">>> Symlink $DocumentRoot to $workspaceFolder"
|
|
|
|
sudo rm -rf $DocumentRoot
|
|
|
|
sudo ln -fs $workspaceFolder $DocumentRoot
|
|
|
|
|
|
|
|
echo 'error_reporting=0' | sudo tee /usr/local/etc/php/conf.d/no-warn.ini
|
|
|
|
|
2024-08-06 14:12:50 +00:00
|
|
|
# create log file
|
|
|
|
mkdir -p log
|
|
|
|
touch log/friendica.log
|
|
|
|
chmod 666 log/friendica.log
|
|
|
|
|
|
|
|
|
2024-07-15 18:55:37 +00:00
|
|
|
exit 0
|