0b86b609
Carmine Spagnuolo
update
|
1
|
# SPOD-MANAGER
|
67720669
Carmine Spagnuolo
update
|
2
|
|
de503ccc
isisadmin
update readme help
|
3
4
5
6
7
8
9
10
|
## Table of contents
* Introduction
* SPOD Requirements
* SPOD Manager download
* SPOD Manager help
* Examples of use
## Introduction
|
d63f3b93
isisadmin
bug fix
|
11
|
A package for the installation, update, backup and restore of a Social Platform for Open Data (SPOD) application. SPOD enables social interactions among open data users and between open data users and government data. http://spod.routetopa.eu
|
de503ccc
isisadmin
update readme help
|
12
13
14
15
16
17
18
19
|
SPOD is based on three packages available under GitLab:
* spod-core, which provides an intiall Oxwall installation tailored on SPOD. In particular it includes a folder (db_dump) which contains an empty Oxwall database configured for SPOD
* spod-themes, which contains the SPOD look and feel
* spod-plugins, which contains some of the Oxwall adapted to SPOD and some other plugins specifically developed for SPOD.
## SPOD Requirements
|
2cc5f180
Carmine Spagnuolo
update
|
20
21
|
* Linux (tested on Kernel 3.19.0-25-generic)
* Apache Web Server (local installation)
|
de503ccc
isisadmin
update readme help
|
22
|
* MySql Server (local or remote installation)
|
2cc5f180
Carmine Spagnuolo
update
|
23
|
* Git shell client
|
de503ccc
isisadmin
update readme help
|
24
|
* ROUTE-TO-PA GitLab source code account
|
4428cdc7
Carmine Spagnuolo
update
|
25
|
* Root access on local machine
|
2cc5f180
Carmine Spagnuolo
update
|
26
|
|
de503ccc
isisadmin
update readme help
|
27
|
## SPOD Manager download
|
67720669
Carmine Spagnuolo
update
|
28
|
|
fa36e4ba
isisadmin
carspa to isislab
|
29
|
wget http://service.routetopa.eu:7480/isislab/spod-manager/raw/master/spod-manager.sh
|
dd9f4dc3
Carmine Spagnuolo
update
|
30
31
|
chmod +x spod-manager.sh
|
de503ccc
isisadmin
update readme help
|
32
|
## SPOD Manager help
|
2cc5f180
Carmine Spagnuolo
update
|
33
|
|
dd9f4dc3
Carmine Spagnuolo
update
|
34
|
sudo ./spod-manager.sh --help
|
43dcedc4
isisadmin
bug
|
35
|
spod-manager.sh is package for the installation, update, backup and restore of a Social Platform for Open Data (SPOD) application. SPOD enables social interactions among open data users and between open data users and government data. http://spod.routetopa.eu
|
de503ccc
isisadmin
update readme help
|
36
|
|
dd9f4dc3
Carmine Spagnuolo
update
|
37
38
|
list of arguments:
-h, --help show commands help.
|
de503ccc
isisadmin
update readme help
|
39
40
41
42
43
44
45
46
47
48
49
50
|
-a, --action=ACTION define the action [install, uninstall, update, backup, restoredb, restoreall] (*).
-m, --mysql-username=username mysql server username (*).
-n, --mysql-password=password mysql server password (*).
-o, --mysql-address=address mysql server hostname or ip address (deafult is localhost).
-p, --spod-git-username=user SPOD Git server user name (*).
-q, --spod-git-email=email SPOD Git server user email (*).
-r, --spod-git-password=password SPOD Git server password (*).
-s, --spod-git-address=address:port SPOD Git server hostname or address (deafult is http://service.routetopa.eu:7480).
-w, --spod-hostname=hostname SPOD hostname (example http://spod.routetopa.eu/).
-e, --spod-www-backup=www-folder SPOD backup folder path (defauld is current directory).
-d, --spod-database-version=db SPOD db name. For installation, it is the name of a db file on the spod-core/db_dump folder (example oxwall_v.0.1_antares.sql). For restoredb and restoreall, it is the db file absolute path).
-b, --backup-dir=DIR SPOD backup directory (default is current directory).
|
dd9f4dc3
Carmine Spagnuolo
update
|
51
52
|
* the arguments is required.
|
de503ccc
isisadmin
update readme help
|
53
|
## Example of use
|
dd9f4dc3
Carmine Spagnuolo
update
|
54
|
|
4428cdc7
Carmine Spagnuolo
update
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
### 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
|
69
|
sudo ./spod-manager.sh -a update -p usergit -q emailuserigit -r passgit -w http://spod.routetopa.eu/
|
fe9c4248
Carmine Spagnuolo
restore
|
70
|
|
08df7c53
Carmine Spagnuolo
update
|
71
|
### RESTORE DB SPOD
|
fe9c4248
Carmine Spagnuolo
restore
|
72
|
|
08df7c53
Carmine Spagnuolo
update
|
73
74
75
76
|
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
|
77
|
sudo ./spod-manager.sh -a restoreall -m root -n mysqlpass -e /var/www -d /home/user/spod-manager/oxwall_version_dump.sql
|