| Server IP : 164.138.27.172 / Your IP : 216.73.217.113 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/dev/internetstiftelsen/provision/ |
Upload File : |
#!/bin/bash
# Init script for a development site with a monolithic Git repo
# v1.0
# Edit these variables to suit your porpoises
# -------------------------------------------
# Just a human readable description of this site
SITE_NAME="Internetstiftelsen"
SITE_URL="vvv.internetstiftelsen.local"
# The name (to be) used by MySQL for the DB
DB_NAME="internetstiftelsen"
echo "---------------------------"
echo "Commencing $SITE_NAME setup"
# Make a database, if we don't already have one
mysql -u root --password=root -e "CREATE DATABASE IF NOT EXISTS $DB_NAME; GRANT ALL PRIVILEGES ON $DB_NAME.* TO wp@localhost IDENTIFIED BY 'wp';"
if [[ ! -d "${VVV_PATH_TO_SITE}/www/wp" ]]; then
cd ${VVV_PATH_TO_SITE}/
echo "Copy default .env"
cp -n ${VVV_PATH_TO_SITE}/provision/.env ${VVV_PATH_TO_SITE}/
noroot composer install
noroot yarn install
cd ${VVV_PATH_TO_SITE}/www/wp
if ! $(noroot wp core is-installed); then
pwd
noroot wp core install --url=${SITE_URL} --title="Internetstiuftelsen dev" --admin_name="admin" --admin_email="admin@local.dev" --admin_password="admin"
noroot wp theme activate internetstiftelsen
cd ${VVV_PATH_TO_SITE}/www/app/themes/internetstiftelsen
fi
# Activate plugins
noroot wp plugin activate nginx-helper query-monitor
# Create js and css
cd ${VVV_PATH_TO_SITE}/
make
fi
echo "$SITE_NAME init is complete";