formatting

This commit is contained in:
CanbiZ 2025-12-09 11:42:37 +01:00
parent 33b8caf26e
commit acc5efd0b3
2 changed files with 49 additions and 52 deletions

View File

@ -1,48 +1,48 @@
{
"name": "InvoiceNinja",
"slug": "invoiceninja",
"categories": [
3
],
"date_created": "2025-12-09",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 8080,
"documentation": "https://invoiceninja.github.io/selfhost.html",
"config_path": "/opt/invoiceninja/.env",
"website": "https://invoiceninja.com/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/invoice-ninja.svg",
"description": "Invoice Ninja is a free, open-source invoicing, quotes, expenses and time-tracking application for freelancers and businesses. Features include recurring invoices, online payments, client portal, and multi-company support.",
"install_methods": [
{
"type": "default",
"script": "ct/invoiceninja.sh",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 8,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "First visit http://IP:8080/setup to complete the initial configuration",
"type": "info"
"name": "InvoiceNinja",
"slug": "invoiceninja",
"categories": [
3
],
"date_created": "2025-12-09",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 8080,
"documentation": "https://invoiceninja.github.io/selfhost.html",
"config_path": "/opt/invoiceninja/.env",
"website": "https://invoiceninja.com/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/invoice-ninja.svg",
"description": "Invoice Ninja is a free, open-source invoicing, quotes, expenses and time-tracking application for freelancers and businesses. Features include recurring invoices, online payments, client portal, and multi-company support.",
"install_methods": [
{
"type": "default",
"script": "ct/invoiceninja.sh",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 8,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
{
"text": "Database credentials are stored in ~/invoiceninja.creds",
"type": "info"
},
{
"text": "Configure SMTP settings in /opt/invoiceninja/.env for email functionality",
"type": "warning"
}
]
"notes": [
{
"text": "First visit http://IP:8080/setup to complete the initial configuration",
"type": "info"
},
{
"text": "Database credentials are stored in ~/invoiceninja.creds",
"type": "info"
},
{
"text": "Configure SMTP settings in /opt/invoiceninja/.env for email functionality",
"type": "warning"
}
]
}

View File

@ -14,22 +14,20 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y nginx supervisor
$STD apt install -y \
nginx \
supervisor
msg_ok "Installed Dependencies"
setup_mariadb
MARIADB_DB_NAME="invoiceninja" MARIADB_DB_USER="invoiceninja" setup_mariadb_db
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,curl,gd,gmp,imagick,intl,mbstring,mysql,soap,xml,zip" setup_php
import_local_ip
fetch_and_deploy_gh_release "invoiceninja" "invoiceninja/invoiceninja" "prebuild" "latest" "/opt/invoiceninja" "invoiceninja.tar"
msg_info "Configuring InvoiceNinja"
cd /opt/invoiceninja
import_local_ip
APP_KEY=$(php artisan key:generate --show)
cat <<EOF >/opt/invoiceninja/.env
APP_NAME="Invoice Ninja"
APP_ENV=production
@ -70,7 +68,6 @@ PDF_GENERATOR=snappdf
TRUSTED_PROXIES=*
INTERNAL_QUEUE_ENABLED=false
EOF
chown -R www-data:www-data /opt/invoiceninja
chmod -R 755 /opt/invoiceninja/storage
msg_ok "Configured InvoiceNinja"