forked from backdrop/backdrop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
27 lines (18 loc) · 726 Bytes
/
install.sh
File metadata and controls
27 lines (18 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Go to domain directory.
cd $DOCROOT
# Link Backdrop files
ln -s $ZENCI_DEPLOY_DIR/* ./
ln -s $ZENCI_DEPLOY_DIR/.htaccess ./
# Unlink settings.php and copy instead.
rm -f settings.php
cp $ZENCI_DEPLOY_DIR/settings.php ./
# Unlink files and copy instead.
rm -f files
cp -r $ZENCI_DEPLOY_DIR/files ./
# Unlink sites and copy instead.
rm -f sites
cp -r $ZENCI_DEPLOY_DIR/sites ./
# Install Backdrop.
php $DOCROOT/core/scripts/install.sh --account-mail=$ACCOUNT_MAIL --account-name=$ACCOUNT_USER --account-pass="$ACCOUNT_PASS" --site-mail=$SITE_MAIL --site-name="$SITE_NAME" --db-url=mysql://$DATABASE_USER:$DATABASE_PASS@localhost/$DATABASE_NAME --root=$DOCROOT
echo "user: $ACCOUNT_USER pass: $ACCOUNT_PASS"