archlinux-pkgbuilds/wallabag.install

27 lines
1.2 KiB
Text
Raw Normal View History

2014-02-17 13:40:23 +01:00
post_install() {
echo 'To get started you need to:
- Enable tidy.so and allow_url_fopen in /etc/php/php.ini
- Create a new mariadb user and a database:
$ mysql -u root -p
> create database wallabag;
> GRANT ALL ON wallabag.* TO wallabag@localhost IDENTIFIED BY '"'mypassword'"';
- Initialize the database:
$ mysql -u root -p wallabag < /usr/share/webapps/wallabag/install/mysql.sql
- Create a config file:
# cp /usr/share/webapps/wallabag/inc/poche/config.inc{.default,}.php
2014-02-17 13:40:23 +01:00
- Adjust your prefered STORAGE_SERVER (mysql, sqlite, postgres)
- Set the database credentials: STORAGE_SERVER, STORAGE_DB, STORAGE_USER, STORAGE_PASSWORD
- *Optional*: Adjust the SALT value in config.inc.php (it was autogenerated during install)
- Remove /usr/share/webapps/wallabag/install
More info: http://doc.wallabag.org/doku.php?id=users:begin:install'
}
post_upgrade() {
echo 'After each upgrade you have to manually:
- Remove the installation folder (/usr/share/webapps/wallabag/install)
- Empty the cache folder (/usr/share/webapps/wallabag/cache)
2015-02-19 11:49:02 +01:00
$ sudo -u http rm -rf /usr/share/webapps/wallabag/{install,cache/*}'
}