Skip to content

Instantly share code, notes, and snippets.

@svenmuennich
Last active November 3, 2021 21:20
Show Gist options
  • Save svenmuennich/f3dcc2e64f4fbfa7e785082517c24fb3 to your computer and use it in GitHub Desktop.
Save svenmuennich/f3dcc2e64f4fbfa7e785082517c24fb3 to your computer and use it in GitHub Desktop.
Install Shopware 5 without Ant/Java
#!/bin/bash
# Make sure to have a valid config.php ready before running this script!!!
# Check parameters
if [[ $# -ne 1 ]]; then
echo " Usage: $0 <app path>"
exit 1
fi
app_path=$1
# Set correct permissions
chmod -R 755 custom/plugins engine/Shopware/Plugins/Community files media var web
# build-composer-install
composer install -o
# build-cache-dir
bin/console sw:cache:clear
# build-database
bin/console sw:database:setup --steps=drop,create,import,importDemodata,setupShop --host="localhost" --path="$app_path"
# build-snippets-deploy
bin/console sw:snippets:to:db --include-plugins
# build-create-admin-account
bin/console sw:admin:create --name="Demo user" --username=demo --password=demo --locale=de_DE
# build-install-lock-file
echo "$(date -u '+%Y%m%d%H%M')" > recovery/install/data/install.lock
# build-disable-firstrunwizard
bin/console sw:firstrunwizard:disable
# download demo images
wget -O demo_images.zip http://releases.s3.shopware.com/test_images_since_5.1.zip
unzip demo_images.zip
rm demo_images.zip
bin/console sw:cache:clear
# build-theme-initialize
bin/console sw:theme:initialize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment