Blame view

README.md 2.23 KB
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
22
23
24
25
26
27
28
29
30
31
32
33
34
      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.
      -a, --action=ACTION                 specify an action install, uninstall, update and backup.
      -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/).
      -d, --spod-database-version=db      specify the SPOD db git path located in db_dump of SPOD git core (example oxwall_v.0.1_antares.sql, deafults is really simple SPOD and Oxwall installation).
      -b, --backup-dir=DIR                specify the directory where store the spod backup (default is current directory).
      * the arguments is required.
  
0b86b609   Carmine Spagnuolo   update
35
  ## Actions examples
dd9f4dc3   Carmine Spagnuolo   update
36
  
4428cdc7   Carmine Spagnuolo   update
37
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
  
      sudo ./spod-manager.sh -a update -p usergit -q emailuserigit -r passgit