formatting
This commit is contained in:
parent
33b8caf26e
commit
acc5efd0b3
@ -1,48 +1,48 @@
|
|||||||
{
|
{
|
||||||
"name": "InvoiceNinja",
|
"name": "InvoiceNinja",
|
||||||
"slug": "invoiceninja",
|
"slug": "invoiceninja",
|
||||||
"categories": [
|
"categories": [
|
||||||
3
|
3
|
||||||
],
|
],
|
||||||
"date_created": "2025-12-09",
|
"date_created": "2025-12-09",
|
||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": true,
|
"updateable": true,
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 8080,
|
"interface_port": 8080,
|
||||||
"documentation": "https://invoiceninja.github.io/selfhost.html",
|
"documentation": "https://invoiceninja.github.io/selfhost.html",
|
||||||
"config_path": "/opt/invoiceninja/.env",
|
"config_path": "/opt/invoiceninja/.env",
|
||||||
"website": "https://invoiceninja.com/",
|
"website": "https://invoiceninja.com/",
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/invoice-ninja.svg",
|
"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.",
|
"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": [
|
"install_methods": [
|
||||||
{
|
{
|
||||||
"type": "default",
|
"type": "default",
|
||||||
"script": "ct/invoiceninja.sh",
|
"script": "ct/invoiceninja.sh",
|
||||||
"resources": {
|
"resources": {
|
||||||
"cpu": 2,
|
"cpu": 2,
|
||||||
"ram": 2048,
|
"ram": 2048,
|
||||||
"hdd": 8,
|
"hdd": 8,
|
||||||
"os": "Debian",
|
"os": "Debian",
|
||||||
"version": "13"
|
"version": "13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default_credentials": {
|
"default_credentials": {
|
||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "First visit http://IP:8080/setup to complete the initial configuration",
|
|
||||||
"type": "info"
|
|
||||||
},
|
},
|
||||||
{
|
"notes": [
|
||||||
"text": "Database credentials are stored in ~/invoiceninja.creds",
|
{
|
||||||
"type": "info"
|
"text": "First visit http://IP:8080/setup to complete the initial configuration",
|
||||||
},
|
"type": "info"
|
||||||
{
|
},
|
||||||
"text": "Configure SMTP settings in /opt/invoiceninja/.env for email functionality",
|
{
|
||||||
"type": "warning"
|
"text": "Database credentials are stored in ~/invoiceninja.creds",
|
||||||
}
|
"type": "info"
|
||||||
]
|
},
|
||||||
|
{
|
||||||
|
"text": "Configure SMTP settings in /opt/invoiceninja/.env for email functionality",
|
||||||
|
"type": "warning"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,22 +14,20 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y nginx supervisor
|
$STD apt install -y \
|
||||||
|
nginx \
|
||||||
|
supervisor
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
MARIADB_DB_NAME="invoiceninja" MARIADB_DB_USER="invoiceninja" setup_mariadb_db
|
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
|
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"
|
fetch_and_deploy_gh_release "invoiceninja" "invoiceninja/invoiceninja" "prebuild" "latest" "/opt/invoiceninja" "invoiceninja.tar"
|
||||||
|
|
||||||
msg_info "Configuring InvoiceNinja"
|
msg_info "Configuring InvoiceNinja"
|
||||||
cd /opt/invoiceninja
|
cd /opt/invoiceninja
|
||||||
|
|
||||||
import_local_ip
|
|
||||||
APP_KEY=$(php artisan key:generate --show)
|
APP_KEY=$(php artisan key:generate --show)
|
||||||
|
|
||||||
cat <<EOF >/opt/invoiceninja/.env
|
cat <<EOF >/opt/invoiceninja/.env
|
||||||
APP_NAME="Invoice Ninja"
|
APP_NAME="Invoice Ninja"
|
||||||
APP_ENV=production
|
APP_ENV=production
|
||||||
@ -70,7 +68,6 @@ PDF_GENERATOR=snappdf
|
|||||||
TRUSTED_PROXIES=*
|
TRUSTED_PROXIES=*
|
||||||
INTERNAL_QUEUE_ENABLED=false
|
INTERNAL_QUEUE_ENABLED=false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chown -R www-data:www-data /opt/invoiceninja
|
chown -R www-data:www-data /opt/invoiceninja
|
||||||
chmod -R 755 /opt/invoiceninja/storage
|
chmod -R 755 /opt/invoiceninja/storage
|
||||||
msg_ok "Configured InvoiceNinja"
|
msg_ok "Configured InvoiceNinja"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user