Skip to content

anewholm/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acorn helper scripts

Human made content CI

Shell scripts for setting up and managing WinterCMS installations, databases, Apache vhosts, and developer laptops on Ubuntu/KUbuntu. These are used commonly in CI/CD runs for the other repositories.

Prominent scripts

Script Purpose
acorn-setup-hostname Create Apache vhost, /etc/hosts entry, and SSL cert for a new local domain
acorn-setup-database Create PostgreSQL database and user for a project
acorn-setup-new-winter Install a fresh WinterCMS with Acorn + plugins into /var/www/<name>
acorn-setup-laptop Full developer laptop setup (Apache, PHP, PostgreSQL, tools)
acorn-setup-laptop-from-usb Automated laptop setup from Acorn USB drive
acorn-setup-server Server variant of laptop setup
acorn-setup-samba Configure Samba share for a project
acorn-setup-apache-https Enable HTTPS on an existing vhost
acorn-setup-security Harden a server installation
acorn-backup / acorn-restore Backup and restore a WinterCMS project (files + DB)
acorn-git-all / acorn-git-push-all Run git commands across all /var/www/ projects

Quick start — new WinterCMS site

cd /var/www/
./scripts/acorn-setup-new-winter myproject

This creates a complete WinterCMS installation with PostgreSQL database and Apache vhost at http://myproject.laptop. It will automatically call acorn-setup-hostname myproject and acorn-setup-database myproject using sudo where necessary. Resultant website filesystem will be ch-owned by www-data:www-data.

Installation

Clone into /var/www/scripts so the scripts are reachable as ../scripts/acorn-* from any /var/www project directory:

git clone https://github.com/anewholm/scripts /var/www/scripts

Compatibility

OS (LTS) WinterCMS (target) Composer PHP PostgreSQL
Ubuntu 22+ v1.2+ 2 v8.1+ v15+

Related

License

MIT

About

Shell scripts for setting up and managing WinterCMS installations, databases, Apache vhosts, and developer laptops on Ubuntu

Topics

Resources

License

Stars

Watchers

Forks

Contributors