friendica/.devcontainer/postCreate.sh

21 wiersze
521 B
Bash
Czysty Zwykły widok Historia

#!/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
echo ">>> Development Setup"
sudo apt-get update
2024-07-16 17:12:26 +00:00
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
echo 'error_reporting=0' | sudo tee /usr/local/etc/php/conf.d/no-warn.ini
exit 0