DB_PASS=$(head /dev/urandom | sha1sum | cut -f1 -d" ") ADMIN_PASS=$(head /dev/urandom | sha1sum | cut -f1 -d" ") SYSTEM_DIR=$(head /dev/urandom | sha1sum | cut -f1 -d" ") # .... more stuff ... # install the Best CMS unzip ExpressionEngine5.1.1.zip rm ExpressionEngine5.1.1.zip curl "http://localhost/admin.php?C=wizard&M=do_install&language=english" -v --data "db_hostname=localhost&db_name=expressionengine&db_username=ee&db_password=$DB_PASS&db_prefix=exp&email_address=admin%40admin.com&username=admin&password=$ADMIN_PASS&license_agreement=y&install_default_theme=y" # lets follow https://docs.expressionengine.com/latest/installation/best_practices.html for very legal and very cool security mv system "../$SYSTEM_DIR" sed -i "s#./system#../$SYSTEM_DIR#g" index.php rm admin.php