mirror of
https://github.com/friendica/friendica
synced 2024-11-18 02:23:40 +00:00
27 lines
736 B
Bash
Executable file
27 lines
736 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
|
|
# Prepare the workspace files with the values from the devcontainer.env file
|
|
set -a
|
|
source $workspaceFolder/.devcontainer/.env
|
|
|
|
echo ">>> Development Setup"
|
|
sudo apt-get update
|
|
|
|
# VSCode debugger profile
|
|
mkdir -p .vscode && cp .devcontainer/launch.json .vscode/launch.json
|
|
|
|
envsubst < $workspaceFolder/.devcontainer/include/my.cnf > /home/vscode/.my.cnf
|
|
|
|
# Make the workspace directory the docroot
|
|
echo ">>> Symlink $DocumentRoot to $workspaceFolder"
|
|
sudo rm -rf $DocumentRoot
|
|
sudo ln -fs $workspaceFolder $DocumentRoot
|
|
|
|
# Set proper permissions
|
|
sudo chown -R $developmentUser:www-data $workspaceFolder
|
|
sudo chmod -R g=u $workspaceFolder
|
|
|
|
echo 'error_reporting=0' | sudo tee /usr/local/etc/php/conf.d/no-warn.ini
|
|
|
|
exit 0
|