-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·52 lines (31 loc) · 1.15 KB
/
init.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
read -p "Questa operazione inizializza gli utenti, i gruppi ed altri parametri dell applicazione. Sei sicuro? (y/n)" -r REPLY
echo # (optional) move to a new line
#if [[ $REPLY =~ ^[Nn]$ ]]
if [[ -z "$REPLY" ]]
then
echo "Non hai inserito nessun parametro. Esecuzione interrotta"
fi
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Step1
# lancia lo script src/Console/installer
# per cambiare i security salt
# e inizializzare le cartelle in lettura/scrittura
#
composer run-script post-install-cmd
# Step2
# crea tabelle ROLES e USERS
# la tabella groups avra 6 gruppi creati
# ( administrators,managers,executives,accountants,guests,inactive)
# e deve esserci per lo startup l'utente admin di profilo administrator (password adminadmin)
#
bin/cake migrations migrate
#
# Step3-crea tabelle per ReportSql
#
# ./Console/cake schema create Reportsql -y
echo "---------- Tutto ok ----------"
echo "Tabelle inizializzate"
echo "Creato utente admin con password adminadmin"
echo "Entra e cambiala subito!!"
fi