Update init

This commit is contained in:
Dai
2025-10-10 06:27:33 -07:00
parent daa2cfe9e8
commit 6630ecef7a

4
init
View File

@@ -20,7 +20,6 @@ sudo nginx -t
# Restart nginx after loading wordpress config
sudo systemctl restart nginx
sudo systemctl status nginx
# PHP
sudo systemctl enable --now php8.4-fpm
@@ -57,8 +56,9 @@ php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
sudo su <<EOF
sudo usermod -a -G www-data debian
cd /var/www
su www-data
sudo chown -R www-data:www-data /var/www
composer create-project roots/bedrock $WP_DOMAIN_NAME
cd /var/www/$WP_DOMAIN_NAME
ln -sf $SCRIPT_PATH/.env .