Compare commits

..

3 Commits

Author SHA1 Message Date
Kristo Copani
2571400d37
fix firefly.json 2024-12-26 20:27:22 +02:00
christos
3085f7d460 more fixes 2024-12-26 20:24:21 +02:00
christos
60250df85b Fixes 2024-12-26 20:24:00 +02:00
3 changed files with 56 additions and 78 deletions

View File

@ -1,57 +1,30 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2024 community-scripts ORG # Copyright (c) 2021-2024 community-scripts ORG
# Author: kristocopani # Author: quantumryuu
# License: MIT # License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://firefly-iii.org/
function header_info { # App Default Values
clear
cat <<"EOF"
_______ ______ ____________
/ ____(_)_______ / __/ /_ __ / _/ _/ _/
/ /_ / / ___/ _ \/ /_/ / / / / / / / / / /
/ __/ / / / / __/ __/ / /_/ / _/ /_/ /_/ /
/_/ /_/_/ \___/_/ /_/\__, / /___/___/___/
/____/
EOF
}
header_info
echo -e "Loading..."
APP="Firefly" APP="Firefly"
var_disk="2" var_tags="finance"
var_cpu="1" var_cpu="1"
var_ram="1024" var_ram="1024"
var_disk="2"
var_os="debian" var_os="debian"
var_version="12" var_version="12"
var_unprivileged="1"
# App Output & Base Settings
header_info "$APP"
base_settings
# Core
variables variables
color color
catch_errors catch_errors
function default_settings() {
CT_TYPE="1"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"
CORE_COUNT="$var_cpu"
RAM_SIZE="$var_ram"
BRG="vmbr0"
NET="dhcp"
GATE=""
APT_CACHER=""
APT_CACHER_IP=""
DISABLEIP6="no"
MTU=""
SD=""
NS=""
MAC=""
VLAN=""
SSH="no"
VERB="no"
echo_default
}
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
@ -70,13 +43,12 @@ check_container_resources
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
cp /opt/firefly/.env /opt/.env cp /opt/firefly/.env /opt/.env
cp -r /opt/firefly/storage /opt/storage cp -r /opt/firefly/storage /opt/storage
rm -rf /opt/firefly rm -rf /opt/firefly/*
cd /opt cd /opt
wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz" wget -q "https://github.com/firefly-iii/firefly-iii/releases/download/v${RELEASE}/FireflyIII-v${RELEASE}.tar.gz"
mkdir -p /opt/firefly
tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage' tar -xzf FireflyIII-v${RELEASE}.tar.gz -C /opt/firefly --exclude='storage'
cd /opt/firefly cd /opt/firefly
composer install --no-dev &>/dev/null composer install --no-dev --no-interaction &>/dev/null
php artisan migrate --seed --force &>/dev/null php artisan migrate --seed --force &>/dev/null
php artisan firefly:decrypt-all &>/dev/null php artisan firefly:decrypt-all &>/dev/null
php artisan cache:clear &>/dev/null php artisan cache:clear &>/dev/null
@ -86,7 +58,7 @@ check_container_resources
chown -R www-data:www-data /opt/firefly chown -R www-data:www-data /opt/firefly
chmod -R 775 /opt/firefly/storage chmod -R 775 /opt/firefly/storage
echo "${RELEASE}" >"/opt/${APP}_version.txt" &>/dev/null echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated ${APP} to v${RELEASE}" msg_ok "Updated ${APP} to v${RELEASE}"
msg_info "Starting Apache2" msg_info "Starting Apache2"
@ -108,5 +80,6 @@ build_container
description description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${APP} should be reachable by going to the following URL. echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
${BL}http://${IP}${CL} \n" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2024 community-scripts ORG # Copyright (c) 2021-2024 community-scripts ORG
# Author: kristocopani # Author: quantumryuu
# License: MIT # License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE

View File

@ -1,34 +1,39 @@
{ {
"name": "Firefly III", "name": "Firefly III",
"slug": "firefly", "slug": "firefly",
"categories": [ "categories": [
0 0
], ],
"date_created": "2024-11-30", "date_created": "2024-12-26",
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 80, "interface_port": 80,
"documentation": "https://docs.firefly-iii.org/", "documentation": "https://docs.firefly-iii.org/",
"website": "https://firefly-iii.org/", "website": "https://firefly-iii.org/",
"logo": "https://raw.githubusercontent.com/firefly-iii/firefly-iii/develop/.github/assets/img/logo-small.png", "logo": "https://raw.githubusercontent.com/firefly-iii/firefly-iii/develop/.github/assets/img/logo-small.png",
"description": "A free and open source personal finance manager", "description": "A free and open source personal finance manager",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "/ct/firefly.sh", "script": "ct/firefly.sh",
"resources": { "resources": {
"cpu": 1, "cpu": 1,
"ram": 1024, "ram": 1024,
"hdd": 2, "hdd": 2,
"os": "Debian", "os": "Debian",
"version": "12" "version": "12"
}
} }
], }
"default_credentials": { ],
"username": null, "default_credentials": {
"password": null "username": null,
}, "password": null
"notes": [] },
} "notes": [
{
"text": "Database credentials: `cat ~/firefly.creds`",
"type": "info"
}
]
}