info:concrete5:58:createc58

bash script to create c58 website

#! /usr/bin/bash
 
 # c58_create.sh
 # doc https://documentation.concrete5.org/developers/appendix/cli-commands
 # 
 # Copyright 2017 radeff.red <fradeff@akademia.ch>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 # 
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 # 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
 echo "Create concrete5.8 website"
 echo "##########################"
 
 echo "sitename"
 read site
 
 echo "database name"
 read dbname
 
  echo "mySql server (eg localhost)"
 read sqlhost
 
  echo "db-username"
 read dbusername
 
   echo "database password"
 read dbpwd
 
 adminmail="fradeff@akademia.ch"
 
 echo "admin password"
 read adminpwd
 
 echo 'do you want to make a copy of c5 files in the current directory: ("y" for yes, any other for no)'
 pwd
 read copier 
 
if [[ "$copier" = "y" ]]; then
	rsync -az  /home/radeff/soft/c5/8/concrete5-8.2.1/# ./
#echo "yo!"
fi
 
concrete/bin/concrete5 c5:install --db-server $sqlhost --db-username $dbusername --db-password $dbpwd --db-database $dbname --site $site --admin-email $adminmail --admin-password $adminpwd --demo-username demo --demo-password demo --demo-email demo@akademia.ch --language fr_fR --site-locale fr_fR 
 
#concrete/bin/concrete5 c5:install --db-server $sqlhost --db-username $dbusername --db-password $dbpwd --db-database $dbname --site $site [--canonical-url CANONICAL-URL] [--canonical-ssl-url CANONICAL-SSL-URL] [--starting-point STARTING-POINT] [--admin-email ADMIN-EMAIL] [--admin-password ADMIN-PASSWORD] [--demo-username DEMO-USERNAME] [--demo-password DEMO-PASSWORD] [--demo-email DEMO-EMAIL] [--language LANGUAGE] [--site-locale SITE-LOCALE] [--config CONFIG] [--attach] [--force-attach] [-i|--interactive]
  • info/concrete5/58/createc58.txt
  • Dernière modification: 2018/07/18 09:45
  • de radeff