0b86b609
Carmine Spagnuolo
update
|
1
|
# SPOD-MANAGER
|
67720669
Carmine Spagnuolo
update
|
2
|
|
0b86b609
Carmine Spagnuolo
update
|
3
|
## Requirements
|
2cc5f180
Carmine Spagnuolo
update
|
4
5
6
7
8
|
* Linux (tested on Kernel 3.19.0-25-generic)
* Apache Web Server (local installation)
* MySql Server (local and remote installation)
* Git shell client
* ROUTE-TO_PA source code account
|
4428cdc7
Carmine Spagnuolo
update
|
9
|
* Root access on local machine
|
2cc5f180
Carmine Spagnuolo
update
|
10
|
|
0b86b609
Carmine Spagnuolo
update
|
11
|
## Download
|
67720669
Carmine Spagnuolo
update
|
12
|
|
dd9f4dc3
Carmine Spagnuolo
update
|
13
14
15
|
wget http://service.routetopa.eu:7480/carspa/spod-manager/raw/master/spod-manager.sh
chmod +x spod-manager.sh
|
0b86b609
Carmine Spagnuolo
update
|
16
|
## Actions help
|
2cc5f180
Carmine Spagnuolo
update
|
17
|
|
dd9f4dc3
Carmine Spagnuolo
update
|
18
19
20
21
|
sudo ./spod-manager.sh --help
spod-manager.sh is manager tool for SPOD application of ROUTE-TO-PA European project all rights are reserved. 2015
list of arguments:
-h, --help show commands help.
|
d8ea2af0
Carmine Spagnuolo
update readme
|
22
|
-a, --action=ACTION specify an action install, uninstall, update, backup and restore.
|
dd9f4dc3
Carmine Spagnuolo
update
|
23
24
25
26
27
28
29
30
|
-m, --mysql-username=username specify the username of mysql (*).
-n, --mysql-password=password specify the password of mysql server (*).
-o, --mysql-address=address specify the address of mysql server (deafult is localhost).
-p, --spod-git-username=user specify the user name of SPOD git server (*).
-q, --spod-git-email=email specify the email of SPOD git server (*).
-r, --spod-git-password=password specify the passoword of SPOD git server (*).
-s, --spod-git-address=address:port specify the SPOD git server (deafult is service.routetopa.eu:7480).
-w, --spod-hostname=hostname specify the SPOD host name (example http://spod.routetopa.eu/).
|
974b6ac6
Carmine Spagnuolo
update
|
31
|
-e, --spod-www-backup=www-folder specify the SPOD www folder path.
|
2d9a779b
Carmine Spagnuolo
update readme
|
32
|
-d, --spod-database-version=db specify the SPOD db git path located in db_dump of SPOD git core (example in backup action: oxwall_v.0.1_antares.sql, deafults is really simple SPOD and Oxwall installationi; in restore action use a local db dump).
|
dd9f4dc3
Carmine Spagnuolo
update
|
33
34
35
|
-b, --backup-dir=DIR specify the directory where store the spod backup (default is current directory).
* the arguments is required.
|
0b86b609
Carmine Spagnuolo
update
|
36
|
## Actions examples
|
dd9f4dc3
Carmine Spagnuolo
update
|
37
|
|
4428cdc7
Carmine Spagnuolo
update
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
### INSTALLATION SPOD
sudo ./spod-manager.sh -a install -m root -n mysqlpass -p usergit -q emailusergit -r passgit -w http://spod.routetopa.eu/ -d oxwall_v.0.1_antares.sql
### UNINSTALLATION SPOD
sudo ./spod-manager.sh -a uninstall -m root -n mysqlpass
### BACKUP SPOD
sudo ./spod-manager.sh -a backup -m root -n mysqlpass -b ./test
### UPDATE SPOD
|
89c34f32
Carmine Spagnuolo
update
|
52
|
sudo ./spod-manager.sh -a update -p usergit -q emailuserigit -r passgit -w http://spod.routetopa.eu/
|
fe9c4248
Carmine Spagnuolo
restore
|
53
|
|
08df7c53
Carmine Spagnuolo
update
|
54
|
### RESTORE DB SPOD
|
fe9c4248
Carmine Spagnuolo
restore
|
55
|
|
08df7c53
Carmine Spagnuolo
update
|
56
57
58
59
|
sudo ./spod-manager.sh -a restoredb -m root -n mysqlpass -d /home/user/spod-manager/oxwall_version_dump.sql
### RESTORE ALL SPOD
|
974b6ac6
Carmine Spagnuolo
update
|
60
|
sudo ./spod-manager.sh -a restoreall -m root -n mysqlpass -e /var/www -d /home/user/spod-manager/oxwall_version_dump.sql
|