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:
|
2014-08-25 20:14:29 +02:00
|
|
|
# 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
|
|
|
|
|
2016-05-06 07:56:46 +02:00
|
|
|
More info:
|
|
|
|
http://doc.wallabag.org/en/Administrator/download_and_install.html'
|
2014-02-17 13:40:23 +01:00
|
|
|
}
|
|
|
|
|
2014-02-19 16:33:35 +01:00
|
|
|
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
|
|
|
|
2014-02-19 16:33:35 +01:00
|
|
|
$ sudo -u http rm -rf /usr/share/webapps/wallabag/{install,cache/*}'
|
|
|
|
}
|