Skip to content

Instantly share code, notes, and snippets.

View Erulezz's full-sized avatar
🎯
Focusing

Eric Horstmanshof Erulezz

🎯
Focusing
View GitHub Profile
@Erulezz
Erulezz / updatefirefly.sh
Last active April 7, 2024 11:12
Update firefly-iii script
#!/bin/bash
# Remove old version of firefly-iii
rm -r firefly-iii-old
# Get latest version number of firefly
latestversion=$(curl -s https://api.github.com/repos/firefly-iii/firefly-iii/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
# Download latest release version
wget https://github.com/firefly-iii/firefly-iii/releases/download/$latestversion/FireflyIII-$latestversion.zip
##########################################
# Rewrites for Firefly + CSV-Importer.
# First location is for CSV Import tool
# General / is for the app
##########################################
location /csv-importer {
alias /full/path/to/csv/importer/public;
try_files $uri $uri/ @csv_importer;