summarylogtreecommitdiffstats
path: root/pagure-mariadb.install
blob: bcebf69527678cddffa79a9145094f44d12a6d5e (plain)
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
post_install() {
	cat <<- EOF
		Te setup using MariaDB use:
		
		\$ sudo mysql -u root -p
		mysql> create database pagure;
		mysql> grant all privileges on pagure.* to pagure identified by '--PagureDBUserPW--';
		mysql> flush privileges;
		mysql> exit
		
		Configure Pagure in /etc/pagure/pagure.cfg and /etc/pagure/alembic.ini
		
		Once configured, populate the database:
		
		\$ python /usr/share/pagure/pagure_createdb.py -c /etc/pagure/pagure.cfg -i /etc/pagure/alembic.ini
	EOF
}

post_upgrade() {
	cat <<- EOF
		Update Pagure database format using:
		
		\$ python /usr/share/pagure/pagure_createdb.py -c /etc/pagure/pagure.cfg
	EOF
}

# vim : ts=4 sw=4 noet