|
|
# Update
|
|
|
|
|
|
Updating Lutim is easy. Go to your Lutim installation directory and then:
|
|
|
|
|
|
```
|
|
|
git pull
|
|
|
carton install
|
|
|
vimdiff lutim.conf lutim.conf.templage
|
|
|
```
|
|
|
|
|
|
Add or delete the settings that have been added or deleted. Then, reload Lutim with (do it with the same user Lutim runs with):
|
|
|
|
|
|
```
|
|
|
carton exec hypnotoad script/lutim
|
|
|
```
|
|
|
|
|
|
Yup, that's all (Mojolicious magic).
|
|
|
|
|
|
***Warning!!!***
|
|
|
|
|
|
If you want to update to Lutim **0.3**, from a previous version, you'll have to modify the database.
|
|
|
|
|
|
```
|
|
|
sqlite3 lutim.db
|
|
|
PRAGMA writable_schema = 1;
|
|
|
UPDATE SQLITE_MASTER SET SQL = 'CREATE TABLE lutim ( short TEXT PRIMARY KEY, path TEXT, footprint TEXT, enabled INTEGER, mediatype TEXT, filename TEXT, counter INTEGER, delete_at_first_view INTEGER, delete_at_day INTEGER, created_at INTEGER, created_by TEXT, last_access_at INTEGER, mod_token TEXT)' WHERE NAME = 'lutim';
|
|
|
PRAGMA writable_schema = 0;
|
|
|
```
|
|
|
|
|
|
***Warning!!!***
|
|
|
|
|
|
If you want to update to Lutim **0.5**, from a previous version, you'll have to modify the database.
|
|
|
|
|
|
```
|
|
|
sqlite3 lutim.db
|
|
|
PRAGMA writable_schema = 1;
|
|
|
UPDATE SQLITE_MASTER SET SQL = 'CREATE TABLE lutim ( short TEXT PRIMARY KEY, path TEXT, footprint TEXT, enabled INTEGER, mediatype TEXT, filename TEXT, counter INTEGER, delete_at_first_view INTEGER, delete_at_day INTEGER, created_at INTEGER, created_by TEXT, last_access_at INTEGER, mod_token TEXT, width INTEGER, height INTEGER)' WHERE NAME = 'lutim';
|
|
|
PRAGMA writable_schema = 0;
|
|
|
```
|
|
|
|
|
|
-------
|
|
|
|
|
|
You can now go back to [wiki's homepage](home). |