├── ncp-web
├── langs.cfg
├── img
│ ├── favicon.png
│ ├── background.png
│ ├── loading-small.gif
│ ├── menu.svg
│ ├── download.svg
│ ├── files.svg
│ ├── delete.svg
│ ├── defaults.svg
│ ├── close.svg
│ ├── info.svg
│ ├── settings-white.svg
│ ├── red-circle.svg
│ ├── green-circle.svg
│ └── logs.svg
├── wizard
│ ├── img
│ │ └── nc-logo.png
│ └── bootstrap
│ │ ├── img
│ │ ├── glyphicons-halflings.png
│ │ └── glyphicons-halflings-white.png
│ │ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ └── glyphicons-halflings-regular.woff
│ │ └── js
│ │ └── npm.js
└── l10n
│ ├── zh.json
│ ├── es.json
│ └── de.json
├── etc
├── logo
├── ncp-config.d
│ ├── l10n
│ │ ├── modsecurity
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ └── es.json
│ │ ├── nc-export-ncp
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-format-USB
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-import-ncp
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-ramlogs
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-snapshot
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ ├── pt.json
│ │ │ ├── ru.json
│ │ │ └── de.json
│ │ ├── nc-webui
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ └── de.json
│ │ ├── nc-zram
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-automount
│ │ │ ├── pt.json
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── de.json
│ │ │ └── zh.json
│ │ ├── nc-database
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-datadir
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-httpsonly
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-snapshot-auto
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ ├── es.json
│ │ │ └── de.json
│ │ ├── samba
│ │ │ ├── zh.json
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-autoupdate-ncp
│ │ │ ├── pt.json
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ └── zh.json
│ │ ├── nc-restore
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-rsync
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-wifi
│ │ │ ├── de.json
│ │ │ └── pt.json
│ │ ├── letsencrypt
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-static-IP
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-scan
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-update
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-audit
│ │ │ ├── pt.json
│ │ │ ├── de.json
│ │ │ └── zh.json
│ │ ├── nc-init
│ │ │ ├── de.json
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── pt.json
│ │ │ └── zh.json
│ │ ├── nc-passwd
│ │ │ ├── de.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ └── es.json
│ │ ├── nc-swapfile
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-info
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-limits
│ │ │ ├── de.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-notify-updates
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── DDNS_spDYN
│ │ │ ├── spDYN.json
│ │ │ ├── es.json
│ │ │ ├── pt.json
│ │ │ └── zh.json
│ │ ├── UFW
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-forward-ports
│ │ │ ├── ru.json
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ └── es.json
│ │ ├── DDNS_duckDNS
│ │ │ ├── duckDNS.json
│ │ │ ├── pt.json
│ │ │ ├── es.json
│ │ │ └── zh.json
│ │ ├── nc-nextcloud
│ │ │ ├── de.json
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-scan-auto
│ │ │ ├── de.json
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-admin
│ │ │ ├── pt.json
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ └── zh.json
│ │ ├── SSH
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── unattended-upgrades
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ ├── pt.json
│ │ │ └── de.json
│ │ ├── nc-fix-permissions
│ │ │ ├── de.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── dnsmasq
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-rsync-auto
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── NFS
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── DDNS_no-ip
│ │ │ ├── no-ip.json
│ │ │ ├── zh.json
│ │ │ ├── pt.json
│ │ │ └── es.json
│ │ ├── nc-hdd-test
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── DDNS_freeDNS
│ │ │ ├── es.json
│ │ │ ├── freeDNS.json
│ │ │ ├── pt.json
│ │ │ └── zh.json
│ │ ├── nc-snapshot-sync
│ │ │ ├── zh.json
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── nc-backup
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── de.json
│ │ │ ├── es.json
│ │ │ └── pt.json
│ │ ├── fail2ban
│ │ │ ├── ru.json
│ │ │ ├── es.json
│ │ │ ├── pt.json
│ │ │ └── zh.json
│ │ ├── nc-hdd-monitor
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-prettyURL
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-backup-auto
│ │ │ ├── es.json
│ │ │ ├── ru.json
│ │ │ ├── zh.json
│ │ │ ├── de.json
│ │ │ └── pt.json
│ │ ├── nc-autoupdate-nc
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ ├── nc-update-nextcloud
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ │ └── nc-previews
│ │ │ ├── zh.json
│ │ │ └── pt.json
│ ├── nc-info.cfg
│ ├── nc-update.cfg
│ ├── nc-audit.cfg
│ ├── nc-update-nc-apps.cfg
│ ├── nc-fix-permissions.cfg
│ ├── nc-httpsonly.cfg
│ ├── nc-webui.cfg
│ ├── nc-zram.cfg
│ ├── nc-snapshot-auto.cfg
│ ├── nc-autoupdate-nc.cfg
│ ├── nc-prettyURL.cfg
│ ├── nc-autoupdate-ncp.cfg
│ ├── nc-notify-updates.cfg
│ ├── nc-update-nc-apps-auto.cfg
│ ├── nc-export-ncp.cfg
│ ├── nc-ramlogs.cfg
│ ├── nc-maintenance.cfg
│ ├── nc-update-nextcloud.cfg
│ ├── nc-import-ncp.cfg
│ ├── nc-snapshot.cfg
│ ├── nc-hdd-monitor.cfg
│ ├── nc-hdd-test.cfg
│ ├── nc-static-IP.cfg
│ ├── modsecurity.cfg
│ ├── nc-restore-snapshot.cfg
│ ├── unattended-upgrades.cfg
│ ├── nc-swapfile.cfg
│ ├── nc-encrypt.cfg
│ ├── nc-format-USB.cfg
│ ├── nc-passwd.cfg
│ ├── nc-rsync.cfg
│ ├── nc-init.cfg
│ ├── nc-restore.cfg
│ ├── spDYN.cfg
│ ├── duckDNS.cfg
│ ├── nc-admin.cfg
│ ├── nc-forward-ports.cfg
│ ├── nc-previews-auto.cfg
│ ├── nc-trusted-proxies.cfg
│ ├── nc-trusted-domains.cfg
│ ├── nc-datadir.cfg
│ ├── nc-nextcloud.cfg
│ ├── nc-previews.cfg
│ ├── freeDNS.cfg
│ ├── nc-automount.cfg
│ ├── dnsmasq.cfg
│ ├── metrics.cfg
│ ├── nc-limits.cfg
│ ├── nc-rsync-auto.cfg
│ ├── nc-backup.cfg
│ ├── UFW.cfg
│ ├── nc-database.cfg
│ ├── nc-scan.cfg
│ ├── no-ip.cfg
│ ├── samba.cfg
│ ├── letsencrypt.cfg
│ ├── SSH.cfg
│ ├── nc-backup-auto.cfg
│ ├── fail2ban.cfg
│ ├── NFS.cfg
│ ├── nc-snapshot-sync.cfg
│ ├── namecheapDNS.cfg
│ └── nc-scan-auto.cfg
├── background
└── ncp.cfg
├── ncp-previewgenerator
├── ncp-previewgenerator-nc20
│ ├── composer
│ │ ├── composer
│ │ │ ├── installed.json
│ │ │ ├── autoload_namespaces.php
│ │ │ ├── autoload_psr4.php
│ │ │ ├── LICENSE
│ │ │ └── autoload_classmap.php
│ │ ├── autoload.php
│ │ └── composer.json
│ ├── tests
│ │ ├── phpunit.xml
│ │ └── bootstrap.php
│ ├── appinfo
│ │ └── app.php
│ ├── .travis.yml
│ └── Makefile
└── ncp-previewgenerator-nc21
│ ├── krankerl.toml
│ ├── .nextcloudignore
│ ├── .php_cs.dist
│ ├── composer.json
│ ├── tests
│ ├── phpunit.xml
│ └── bootstrap.php
│ └── .github
│ └── workflows
│ └── lint.yml
├── .dockerignore
├── ncp-app
├── css
│ └── style.css
├── js
│ └── script.js
├── templates
│ └── index.php
├── appinfo
│ ├── routes.php
│ └── info.xml
└── lib
│ └── Controller
│ └── PageController.php
├── updates
├── 1.36.4.sh
├── 1.47.0.sh
├── 1.25.0.sh
├── 1.30.0.sh
├── 1.45.0.sh
├── 1.18.0.sh
├── 1.46.0.sh
├── 1.39.0.sh
├── 1.16.0.sh
└── 1.20.0.sh
├── .gitignore
├── .github
├── ISSUE_TEMPLATE
│ ├── 4_Documentation_issue.md
│ ├── 5_Security_issue.md
│ ├── 2_Feature_request.md
│ ├── 3_Support_question.md
│ └── 1_Bug_report.md
└── actions
│ └── create-test-instance
│ └── action.yml
├── CONTRIBUTING.md
├── bin
├── ncp-check-updates
├── ncp-docker-hook
├── ncp-check-nc-version
├── ncp-check-version
├── ncp-test-updates
├── nextcloud-domain.sh
├── ncp
│ ├── UPDATES
│ │ ├── nc-update-nc-apps.sh
│ │ ├── nc-update.sh
│ │ └── nc-update-nextcloud.sh
│ ├── TOOLS
│ │ ├── nc-maintenance.sh
│ │ └── nc-fix-permissions.sh
│ ├── BACKUPS
│ │ └── nc-export-ncp.sh
│ ├── NETWORKING
│ │ └── nc-trusted-proxies.sh
│ ├── CONFIG
│ │ ├── nc-trusted-domains.sh
│ │ ├── nc-httpsonly.sh
│ │ ├── nc-admin.sh
│ │ └── nc-webui.sh
│ └── SYSTEM
│ │ └── nc-info.sh
└── ncp-suggestions
├── tests
├── lxd_forwarding.sh
└── libvirt_forwarding.sh
└── tag_and_push.sh
/ncp-web/langs.cfg:
--------------------------------------------------------------------------------
1 | auto
2 | en
3 | de
4 | es
5 | zh
6 | ru
7 |
--------------------------------------------------------------------------------
/etc/logo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/etc/logo
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/modsecurity/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-export-ncp/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DIR":"Каталог"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-format-USB/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LABEL":"Ярлык"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-import-ncp/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"FILE":"Файл"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-ramlogs/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LIMIT":"限制"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-webui/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-zram/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-automount/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Ativo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-automount/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-database/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DBDIR":"Destino"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-datadir/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DATADIR":"Destino"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-httpsonly/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-ramlogs/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Active"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-auto/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-auto/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"開啟"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LIMIT":"Límite"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LIMIT":"Limíte"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LIMIT":"Ограничение"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-zram/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/samba/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"開啟","PWD":"密碼"}}
2 |
--------------------------------------------------------------------------------
/etc/background:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/etc/background
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-automount/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-ncp/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Ativo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-datadir/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DATADIR":"Каталог данных"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-format-USB/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"LABEL":"Etiqueta"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-restore/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"BACKUPFILE":"Файл бекапа"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DESTINATION":"Destino"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-auto/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Ativo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-wifi/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-wifi": "WLAN"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/samba/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","PWD":"Пароль"}}
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/composer/composer/installed.json:
--------------------------------------------------------------------------------
1 | []
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/letsencrypt/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DOMAIN":"Домен","EMAIL":"EMAIL"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-ncp/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-database/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DBDIR":"Каталог базы данных"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DESTINATION":"Пункт назначения"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-auto/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-static-IP/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","IP":"IP"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-wifi/pt.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-wifi": "WLAN"
3 | }}
4 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-ramlogs/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-ramlogs": "RAM-Logs"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-scan": "Datei-Scan"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-static-IP/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","IP":"IP"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-update/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-update": "Update"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/samba/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","PWD":"Contraseña"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-audit/pt.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-audit": "nc-audit"
3 | }}
4 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-database/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-database": "Datenbank"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-init/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-init": "Initialisierung"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-passwd/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-passwd": "NCP-Passwort"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-passwd/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"PASSWORD":"Пароль","CONFIRM":"Подтвердить"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-swapfile/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-swapfile": "Swap Datei"
3 | }}
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/krankerl.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | before_cmds = [
3 | ]
4 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-audit/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-audit": "Sicherheitsüberprüfung"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-datadir/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-datadir": "Datenverzeichnis"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-export-ncp/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-export-ncp": "NCP-Export"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-httpsonly/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-httpsonly": "HTTPS-Zwang"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-import-ncp/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-import-ncp": "NCP-Import"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-info/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-info": "System Informationen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-limits/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-limits": "Systembegrenzungen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-notify-updates/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","USER":"Usuario"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-notify-updates/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","USER":"Пользователь"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-restore/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-restore": "Wiederherstellung"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-swapfile/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{"SWAPFILE":"SWAP檔案","SWAPSIZE":"SWAP大小"}}
2 |
--------------------------------------------------------------------------------
/ncp-web/img/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/img/favicon.png
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_spDYN/spDYN.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DOMAIN":"Домен","TOKEN":"Токен"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/UFW/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","HTTP":"HTTP","HTTPS":"HTTPS","SSH":"SSH"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-forward-ports/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"HTTPSPORT":"Порт HTTPS","HTTPPORT":"Порт HTTP"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-snapshot": "Snapshot erstellen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-swapfile/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"SWAPFILE":"SWAP файл","SWAPSIZE":"Размер файла SWAP"}}
--------------------------------------------------------------------------------
/etc/ncp.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "nextcloud_version": "25.0.4",
3 | "php_version": "8.1",
4 | "release": "bullseye"
5 | }
6 |
--------------------------------------------------------------------------------
/ncp-web/img/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/img/background.png
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_duckDNS/duckDNS.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DOMAIN":"Домен","TOKEN":"Токен"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_spDYN/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","DOMAIN":"Dominio","TOKEN":"Token"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_spDYN/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Ativo","DOMAIN":"Domínio","TOKEN":"Token"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/UFW/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","HTTP":"HTTP","HTTPS":"HTTPS","SSH":"SSH"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-nextcloud/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-nextcloud": "Nextcloud Einstellungen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan-auto/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-scan-auto": "Automatischer Datei-Scan"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-static-IP/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-static-IP": "Statische IP Adresse"
3 | }}
--------------------------------------------------------------------------------
/ncp-web/img/loading-small.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/img/loading-small.gif
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-admin/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"USER":"Usuário","PASSWORD":"Senha","CONFIRM":"Confirmar"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-admin/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"USER":"Пользователь","PASSWORD":"Пароль","CONFIRM":"Подтвердить"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-format-USB/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-format-USB": "USB-Laufwerke formatieren"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-forward-ports/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-forward-ports": "Portweiterleitungen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-init/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ADMINUSER":"Usuario administrador","ADMINPASS":"Contraseña"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-init/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ADMINUSER":"Администратор","ADMINPASS":"Пароль администратора"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan-auto/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","SCANINTERVAL":"Intervalo de escaneo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan-auto/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","SCANINTERVAL":"Интернвал сканирования"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-swapfile/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"SWAPFILE":"Archivo de swap","SWAPSIZE":"Tamaño de swap"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-webui/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "nc-webui": "nc-webui"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/samba/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{
2 | "ACTIVE":"Ativo",
3 | "PWD":"Senha"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ncp-web/wizard/img/nc-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/img/nc-logo.png
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-admin/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"USER":"Usuario","PASSWORD":"Contraseña","CONFIRM":"Confirmar"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-ncp/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","NOTIFYUSER":"Уведомление пользователя"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-auto/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-snapshot-auto": "Automatische Snapshots"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/SSH/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","USER":"Пользователь","PASS":"Пароль","CONFIRM":"Подтвердить"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-ncp/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-autoupdate-ncp": "Automatische NCP-Updates"
3 | }}
4 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-init/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ADMINUSER":"Usuário administrador","ADMINPASS":"Senha do administrador"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-notify-updates/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-notify-updates": "Update-Benachrichtigungen"
3 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/unattended-upgrades/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","AUTOREBOOT":"Автоматическая перезагрузка"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/SSH/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","USER":"Usuario","PASS":"Contraseña","CONFIRM":"Confirmar"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-fix-permissions/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-fix-permissions": "Berechtigungen wiederherstellen"
3 | }}
--------------------------------------------------------------------------------
/ncp-web/img/menu.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/dnsmasq/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DOMAIN":"Домен","DNSSERVER":"DNS-сервер","CACHESIZE":"Размер кэша"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync-auto/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","DESTINATION":"Destino","SYNCDAYS":"Intervalo en días"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/NFS/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","DIR":"Directorio","SUBNET":"Subred","USER":"Usuario","GROUP":"Grupo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/NFS/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DIR":"Каталог","SUBNET":"Подсеть","USER":"Пользователь","GROUP":"Группа"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_no-ip/no-ip.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","USER":"Пользователь","PASS":"Пароль","DOMAIN":"Домен","TIME":"Время"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-hdd-test/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "SHORTTEST": "快速測試",
4 | "LONGTEST":"完整檢查"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync-auto/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DESTINATION":"Пункт назначения","SYNCDAYS":"Дней для синхронизации"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-update/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Update NextCloudPi":"更新NextCloudPi",
4 | "nc-update":"更新NCP"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-automount/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-automount": "Automatische Datenträgereinbindung",
3 | "ACTIVE":"Aktiviert"
4 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_freeDNS/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","UPDATEHASH":"UPDATEHASH","DOMAIN":"Dominio","UPDATEINTERVAL":"Intervalo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-hdd-test/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "SHORTTEST": "Teste curto",
4 | "LONGTEST":"Teste longo"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-sync/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"開啟","SNAPDIR":"快照備份資料夾","DESTINATION":"目標資料夾","COMPRESSION":"壓縮","SYNCDAYS":"SYNCDAYS"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-swapfile/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{
2 | "SWAPFILE":"Arquivo de troca",
3 | "SWAPSIZE":"Tamanho do arquivo de troca"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ncp-web/img/download.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/bootstrap/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_freeDNS/freeDNS.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","UPDATEHASH":"Обновление Hash","DOMAIN":"Домен","UPDATEINTERVAL":"Интервал обновления"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_freeDNS/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Ativo","UPDATEHASH":"Atualizar Hash","DOMAIN":"Domínio","UPDATEINTERVAL":"Atualizar Intervalo"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-update/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Update NextCloudPi":"atualização NextCloudPi",
4 | "nc-update":"nc-atualização"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/bootstrap/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | torrent/
2 | tmp/
3 | cache/
4 | output/
5 | raspbian_root/
6 | raspbian_boot/
7 | qemu-raspbian-network/
8 | armbian/
9 | *.img
10 | *.tar.bz2
11 | .git
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-audit/zh.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-audit": "安全性檢查",
3 | "Perform a security audit with lynis and debsecan":"使用lynis和debsecan進行安全檢查"
4 | }}
5 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"DESTDIR":"Целевой каталог","INCLUDEDATA":"Включить каталог данных","COMPRESS":"Сжать","BACKUPLIMIT":"Ограничение архива"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-info/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Print NextCloudPi system info": "顯示NextCloudPi系統信息",
4 | "nc-info": "NCP系統訊息"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-limits/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"MAXFILESIZE":"Максимальный размер файла","MEMORYLIMIT":"Ограничение памяти","PHPTHREADS":"PHP потоки","REDISMEM":"REDIS память"}}
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DesktopECHO/nextcloudpi/HEAD/ncp-web/wizard/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Scan NC for externally modified files":"掃描NextCloud使用者數據來檢查並更新",
4 | "nc-scan":"掃描NC使用者文件"
5 |
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-httpsonly/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "啟動",
4 | "Force HTTPS": "強制使用https",
5 | "nc-httpsonly": "強制使用https"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ncp-app/css/style.css:
--------------------------------------------------------------------------------
1 | #ncp-message {
2 | }
3 |
4 | #ncp-message-wrapper {
5 | display: flex;
6 | justify-content: center;
7 | align-items: center;
8 | margin: 0 auto;
9 | }
10 |
--------------------------------------------------------------------------------
/updates/1.36.4.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | # Required for the reverse proxy of the metrics app
6 | a2enmod proxy_http
7 | bash -c "sleep 2 && service apache2 reload" &>/dev/null &
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-sync/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","SNAPDIR":"Каталог образов","DESTINATION":"Пункт назначения","COMPRESSION":"Сжатие","SYNCDAYS":"Дней синхронизации"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-zram/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "Enable compressed RAM to improve swap performance":"壓縮記憶體來提高性能",
5 | "nc-zram":"壓縮記憶體"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-info/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Print NextCloudPi system info": "Muestra información de sistema de NCP",
4 | "nc-info": "nc-info"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/fail2ban/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","BANTIME":"Время бана","FINDTIME":"Время обнаружения","MAXRETRY":"Максимум повторов","EMAIL":"EMAIL","MAILALERTS":"Уведомления по почте"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-hdd-monitor/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "開啟",
4 | "Monitor HDD health automatically":"定期檢查HDD硬碟狀態",
5 | "EMAIL":"電子郵件"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-httpsonly/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "Force HTTPS": "Forzar HTTPS",
5 | "nc-httpsonly": "nc-httpsonly"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-httpsonly/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "Force HTTPS": "Forçar HTTPS",
5 | "nc-httpsonly": "nc-apenasHttps"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-info/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Print NextCloudPi system info": "Imprime informações do sistema NextCloudPi",
4 | "nc-info": "nc-info"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-snapshot-sync/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","SNAPDIR":"Directorio de Snapshots","DESTINATION":"Destino","COMPRESSION":"Compresión","SYNCDAYS":"Días de sincronización"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-webui/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "Enable or disable the NCP web interface":"開啟或關閉NCP Web 網頁介面",
5 | "nc-webui":"NCP Web 網頁介面"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-nextcloud/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"VER":"Version","BETA":"BETA","MAXFILESIZE":"Tamaño máximo de subida","MEMORYLIMIT":"Límite de memoria","MAXTRANSFERTIME":"Máximo tiempo de descarga"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-nextcloud/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"VER":"Версия","BETA":"Бета","MAXFILESIZE":"Максимальный размер файла","MEMORYLIMIT":"Ограничение памяти","MAXTRANSFERTIME":"Максимальное время передачи"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-export-ncp/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "DIR": "位置",
4 | "Export NextCloudPi configuration": "匯出NextCloudPi設定",
5 | "nc-export-ncp": "匯出NCP設定"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-prettyURL/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "nc-prettyURL":"漂亮的URL",
4 | "Set pretty URLs (no index.php in URL)":"設置漂亮的網址(移除網址裡的index.php)",
5 | "ACTIVE":"開啟"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/fail2ban/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","BANTIME":"Tiempo de bloqueo","FINDTIME":"Periodo de guarda","MAXRETRY":"Máximos reintentos","EMAIL":"E-mail","MAILALERTS":"Alertas por email"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup-auto/es.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Activado","DESTDIR":"Destino","INCLUDEDATA":"Incluír datos","COMPRESS":"Comprimir","BACKUPDAYS":"Intervalo en días","BACKUPLIMIT":"Límite de backups"}}
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Scan NC for externally modified files": "Buscar en Nextcloud archivos modificados externamente",
4 | "nc-scan": "nc-scan"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Scan NC for externally modified files": "Escanear Nextcloud por arquivos modificados externamente",
4 | "nc-scan": "nc-scan"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-webui/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"ativo",
4 | "Enable or disable the NCP web interface":"Ativar ou desativar a inteface web do NCP",
5 | "nc-webui":"nc-webui"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-nc/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "Automatically apply Nextcloud updates":"自動更新Nextcloud",
5 | "nc-autoupdate-nc":"自動更新NC"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-autoupdate-ncp/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "Automatically apply NextCloudPi updates":"自動更新NextcloudPi",
5 | "nc-autoupdate-ncp":"自動更新NCP"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-import-ncp/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "FILE": "檔案位置",
4 | "Import NextCloudPi configuration from file": "匯入NextCloudPi設定",
5 | "nc-import-ncp": "匯入NCP設定"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-info.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-info",
3 | "name": "Nc-info",
4 | "title": "nc-info",
5 | "description": "Print NextCloudPi system info",
6 | "info": "",
7 | "infotitle": "",
8 | "params": []
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-update.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-update",
3 | "name": "Nc-update",
4 | "title": "nc-update",
5 | "description": "Update NextCloudPi",
6 | "info": "",
7 | "infotitle": "",
8 | "params": []
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup-auto/ru.json:
--------------------------------------------------------------------------------
1 | {"translations":{"ACTIVE":"Активно","DESTDIR":"Целевой каталог","INCLUDEDATA":"Включить каталог данных","COMPRESS":"Сжать","BACKUPDAYS":"Количество дней в архиве","BACKUPLIMIT":"Ограничение архива"}}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-fix-permissions/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Fix permissions for NC data files, in case they were copied externally": "修復NC數據文件的權限",
4 | "nc-fix-permissions": "修復NC文件權限"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-hdd-monitor/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "Monitor HDD health automatically":"Monitorar saúde do HDD automaticamente",
5 | "EMAIL":"E-mail"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-passwd/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Change password for the NextCloudPi Panel":"修改NextCloudPi網頁介面的密碼",
4 | "nc-passwd":"修改NCP密碼",
5 | "PASSWORD":"密碼",
6 | "CONFIRM":"再次輸入密碼"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-prettyURL/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "nc-prettyURL":"nc-URLbonito",
4 | "Set pretty URLs (no index.php in URL)":"Definir URLs bonitas (no index.php na URL)",
5 | "ACTIVE":"Ativo"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ncp-app/js/script.js:
--------------------------------------------------------------------------------
1 | // open the NCP web panel
2 |
3 | var url = window.location.protocol + '//' + window.location.hostname + ':4443';
4 |
5 | if ( !window.open( url, '_blank' ) ) // try to open in a new tab first
6 | window.location.href = url;
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-zram/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"ativo",
4 | "Enable compressed RAM to improve swap performance":"Ativar RAM compactada para melhorar o desempenho de troca",
5 | "nc-zram":"nc-zram"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/composer/autoload.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 | Opening NextCloudPi Web Panel ...
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ncp-web/img/files.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-static-IP/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "IP":"IP地址",
5 | "Set up a static IP address (ACTIVE=yes), or DHCP (ACTIVE=no)":"設定靜態IP地址(開啟=yes)或 DHCP(關閉=no)",
6 | "nc-static-IP":"修改網路型態(靜態IP)"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/unattended-upgrades/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"啟動",
4 | "AUTOREBOOT":"重新開機",
5 | "Automatic installation of security updates. Keep your cloud safe":"自動安裝安全",
6 | "unattended-upgrades":"自動更新安全更新"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ncp-web/img/delete.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/composer/composer/autoload_namespaces.php:
--------------------------------------------------------------------------------
1 | array($baseDir . '/../lib'),
10 | );
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/fail2ban/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "BANTIME": "Tempo de Bloqueio",
5 | "FINDTIME": "Periodo encontrado",
6 | "MAXRETRY": "Tentativas Maximas",
7 | "EMAIL": "E-mail",
8 | "MAILALERTS": "Alertas por email"
9 | }
10 | }
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-fix-permissions/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Fix permissions for NC data files, in case they were copied externally": "Consertar as permissões do arquivo de dados do NC, caso eles forem copiados externamente",
4 | "nc-fix-permissions": "nc-permissões-consertada"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/UFW/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "HTTP":"HTTP",
5 | "HTTPS":"HTTPS",
6 | "SSH":"SSH",
7 | "Uncomplicated Firewall":"簡易防火牆(UFW)",
8 | "Beware of blocking the SSH port you are using!":"保護您使用SSH",
9 | "Run":"儲存"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-notify-updates/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"Ativo",
4 | "USER":"Usuário",
5 | "Notify in NC when a NextCloudPi update is available":"Notifica no NC quando uma atualização NextCloudPi está disponível",
6 | "nc-notify-updates":"nc-notificar-atualizações"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ncp-web/l10n/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Configure NxtCloudPi features": "設定NextcloudPi",
4 | "Run": "開始",
5 | "Skip":"跳過",
6 | "This application requires JavaScript for correct operation. Please %s enable JavaScript %s and reload the page.": "您的瀏覽器已禁用JavaScript,請%s 啟動JavaScript %s並重新載入頁面。"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "nc-backup": "Sicherung erstellen",
3 | "DESTDIR": "Zielverzeichnis",
4 | "INCLUDEDATA": "Inkl. Dateien",
5 | "COMPRESS": "Komprimieren",
6 | "BACKUPLIMIT": "Maximale Anzahl an Sicherungen",
7 | "Backup this NC instance to a file": "Sichere die NCP-Instanz in eine Datei"
8 | }}
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_freeDNS/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "UPDATEHASH":"Update Hash",
5 | "DOMAIN":"域名",
6 | "UPDATEINTERVAL":"更新IP時間間隔",
7 | "DDNS FreeDNS client (need account)":"DDNS FreeDNS client (需要帳號)",
8 | "DDNS_freeDNS":"freeDNS(DDNS)"
9 |
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/fail2ban/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{
2 | "ACTIVE":"開啟",
3 | "BANTIME":"禁止時間",
4 | "FINDTIME":"尋找時間",
5 | "MAXRETRY":"最大重試次數",
6 | "EMAIL":"郵件提醒",
7 | "MAILALERTS":"郵件警報",
8 | "Brute force protection for SSH and NextCloud":"封鎖SSH多次登入錯誤IP",
9 | "fail2ban":"fail2ban",
10 | "Run":"儲存"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-previews/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Generate previews for the gallery":"生成預覽圖示",
4 | "nc-previews":"生成圖庫",
5 | "This will make browsing the gallery much more smooth.\nFor big collections, this can take a LONG time, depending on your hardware":"生成後瀏覽圖庫會更加順暢\n若您的圖片很多,生成可能需要很多時間,具體的時間取決於您的硬件"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/.nextcloudignore:
--------------------------------------------------------------------------------
1 | .babelrc.js
2 | .drone.yml
3 | .eslintrc.js
4 | .git
5 | .github
6 | .gitignore
7 | .nextcloudignore
8 | .scrutinizer.yml
9 | .travis.yml
10 | .tx
11 | composer.json
12 | composer.lock
13 | krankerl.toml
14 | node_modules
15 | package.json
16 | package-lock.json
17 | screenshots
18 | src
19 | vendor
20 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-httpsonly.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-httpsonly",
3 | "name": "Nc-httpsonly",
4 | "title": "nc-httpsonly",
5 | "description": "Force HTTPS",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "yes",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_duckDNS/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "DOMAIN": "Domínio",
5 | "Free Dynamic DNS provider (need account from https://duckdns.org)": "Provedor de DNS dinamico gratuito (precisa de conta em https://duckdns.org)",
6 | "TOKEN": "Token",
7 | "duckDNS": "duckDNS"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/4_Documentation_issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: ⛔ Documentation Issue
3 | about: See the NextCloudPi Wiki
4 |
5 | ---
6 |
7 | The NextCloudPi wiki is open to anyone to edit. If you find something inaccurate,
8 | missing or that can be improved, please feel free to contribute to it.
9 |
10 | https://github.com/nextcloud/nextcloudpi/wiki
11 |
12 | Thank you!
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_duckDNS/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "DOMAIN": "Dominio",
5 | "Free Dynamic DNS provider (need account from https://duckdns.org)": "Proveedor de DNS dinámicas gratuito (requiere cuenta en https://duckdns.org",
6 | "TOKEN": "Token",
7 | "duckDNS": "duckDNS"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_duckDNS/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "開啟",
4 | "DOMAIN": "域名",
5 | "Free Dynamic DNS provider (need account from https://duckdns.org)": "使用duckdns.org免費提供的動態DNS(DDNS)(https://duckdns.org)",
6 | "TOKEN": "TOKEN",
7 | "DDNS_duckDNS": "duckDNS(DDNS)",
8 | "Run":"儲存"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup-auto/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "DESTDIR":"目標資料夾",
5 | "INCLUDEDATA":"包括數據",
6 | "COMPRESS":"壓縮",
7 | "BACKUPDAYS":"備份日期",
8 | "BACKUPLIMIT":"備份限制",
9 | "Periodic backups":"定期自動備份Nextcloud",
10 | "nc-backup-auto":"自動備份NC"
11 |
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-webui.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-webui",
3 | "name": "Nc-webui",
4 | "title": "nc-webui",
5 | "description": "Enable or disable the NCP web interface",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/unattended-upgrades/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "AUTOREBOOT": "Reinicio automático",
5 | "Automatic installation of security updates. Keep your cloud safe": "Instalación automática de actualizaciones de seguridad. Mantén tu nube segura",
6 | "unattended-upgrades": "unattended-upgrades"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-zram.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-zram",
3 | "name": "Nc-zram",
4 | "title": "nc-zram",
5 | "description": "Enable compressed RAM to improve swap performance",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | Check this wiki article if you want to learn how you can help.
4 |
5 | [Ways to contribute](https://docs.nextcloudpi.com/en/contribute/)
6 |
7 | Check this other article to learn about the process of contributing with code and with testing.
8 |
9 | [NCP Feature Workflow](https://docs.nextcloudpi.com/en/workflow-and-testing-of-new-features/)
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/unattended-upgrades/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activo",
4 | "AUTOREBOOT": "Reinício automático",
5 | "Automatic installation of security updates. Keep your cloud safe": "Instalação automática de atualizações de segurança. Mantenha sua nuvem segura",
6 | "unattended-upgrades": "atualizações autônomas"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/unattended-upgrades/de.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Aktiviert",
4 | "AUTOREBOOT": "Automatischer Neustart",
5 | "Automatic installation of security updates. Keep your cloud safe": "Automatische Installation von Sicherheits-Updates. Halte deine Cloud sicher",
6 | "unattended-upgrades": "Unüberwachte System-Upgrades"
7 | }
8 | }
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/.php_cs.dist:
--------------------------------------------------------------------------------
1 | getFinder()
12 | ->notPath('build')
13 | ->notPath('l10n')
14 | ->notPath('src')
15 | ->notPath('vendor')
16 | ->in(__DIR__);
17 | return $config;
18 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "DESTINATION":"目標資料夾",
4 | "Sync Nextcloud data through rsync":"使用rsync同步Nextcloud數據",
5 | "'user' needs SSH autologin from the NCP 'root' user at 'ip'\nif we are launching from ncp-web":"'user' needs SSH autologin from the NCP 'root' user at 'ip'\nif we are launching from ncp-web",
6 | "nc-rsync":"同步NC數據(rsync)"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-snapshot-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-snapshot-auto",
3 | "name": "Nc-snapshot-auto",
4 | "title": "nc-snapshot-auto",
5 | "description": "Scheduled datadir BTRFS snapshots",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/composer/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "config" : {
3 | "vendor-dir": ".",
4 | "optimize-autoloader": true,
5 | "classmap-authoritative": true,
6 | "autoloader-suffix": "PreviewGenerator"
7 | },
8 | "autoload" : {
9 | "psr-4": {
10 | "OCA\\PreviewGenerator\\": "../lib/"
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/UFW/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"ativo",
4 | "HTTP":"HTTP",
5 | "HTTPS":"HTTPS",
6 | "SSH":"SSH",
7 | "Uncomplicated Firewall":"Firewall descomplicado(UFW)",
8 | "Beware of blocking the SSH port you are using!":"Cuidado com o bloqueio da porta SSH que você está usando!",
9 | "Run":"Executar"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-autoupdate-nc.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-autoupdate-nc",
3 | "name": "Nc-autoupdate-nc",
4 | "title": "nc-autoupdate-nc",
5 | "description": "Automatically apply Nextcloud updates",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-prettyURL.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-prettyURL",
3 | "name": "Nc-prettyURL",
4 | "title": "nc-prettyURL",
5 | "description": "Set pretty URLs (no index.php in URL)",
6 | "info": "",
7 | "infotitle": "PrettyURL notes",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup-auto/de.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"Aktiviert",
4 | "DESTDIR":"Ziel-Verzeichnis",
5 | "INCLUDEDATA":"Daten mit sichern",
6 | "COMPRESS":"Komprimieren",
7 | "BACKUPDAYS":"Sicherungs-Periode (in Tage)",
8 | "BACKUPLIMIT":"Sicherungs-Limit",
9 | "nc-backup-auto":"Automatische Sicherung"
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-autoupdate-ncp.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-autoupdate-ncp",
3 | "name": "Nc-autoupdate-ncp",
4 | "title": "nc-autoupdate-ncp",
5 | "description": "Automatically apply NextCloudPi updates",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/ncp-web/l10n/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Configure NextCloudPi features": "Configurar NextCloudPi",
4 | "Run": "Ejecutar",
5 | "This application requires JavaScript for correct operation. Please %s enable JavaScript %s and reload the page.": "Esta aplicación requiere Javascript para un funcionamiento correcto. Por favor %s active Javascript %s y recarge la página."
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "BACKUPLIMIT": "Copias de seguridad a almacenar",
4 | "Backup this NC instance to a file": "Realiza una copia de seguridad de la instancia de NC",
5 | "COMPRESS": "Comprimir",
6 | "DESTDIR": "Directorio de destino",
7 | "INCLUDEDATA": "Incluír datos",
8 | "nc-backup": "nc-backup"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "BACKUPLIMIT": "Limites de backup",
4 | "Backup this NC instance to a file": "Fazer uma cópia de segurança(backup) dessa instância NC num arquivo",
5 | "COMPRESS": "Comprimir",
6 | "DESTDIR": "Diretório de destino",
7 | "INCLUDEDATA": "Incluír dados",
8 | "nc-backup": "nc-backup"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/5_Security_issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: ⛔ Security Issue
3 | about: Email nacho [at] ownyourbits.com
4 |
5 | ---
6 |
7 | ⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
8 |
9 | If you have found a security issue in NextCloudPi, please send the details to
10 | nacho [at] ownyourbits.com and don't disclose it publicly until we can provide a
11 | fix for it.
12 |
13 | Thank you!
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-ramlogs/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"Ativo",
4 | "mount logs in RAM to prevent SD degradation (faster, consumes more RAM)":"Montar logs na memória RAM para evitar a degradação do SD (Mas rápido, porém consome mais RAM)",
5 | "You need to reboot for this change to take effect":"Você precisa reiniciar para que a alteração seja feita",
6 | "nc-ramlogs":"nc-ramlogs"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-init/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "(Re)initiate Nextcloud to a clean configuration":"初始化Nextcloud",
4 | "This action will configure NextCloud to NextCloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n":"重設後將使用預設文件配置(NextcloudPi)\n**您所有的資料及設定將會刪除並無法復原**",
5 | "ADMINUSER":"管理員",
6 | "ADMINPASS":"管理員密碼",
7 | "nc-init":"初始化NC"
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-update-nextcloud/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Update current instance to a new Nextcloud version":"Atualizre a instâcia atual para uma nova versão Nextcloud",
4 | "VERSION":"Versão",
5 | "nc-update-nextcloud":"nc-atualização-nextcloud",
6 | "Set to 0 to update to the latest avaliable version":"Defina como 0(zero) para atualizar para a versão mais recente disponível"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-notify-updates.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-notify-updates",
3 | "name": "Nc-notify-updates",
4 | "title": "nc-notify-updates",
5 | "description": "Notify in Nextcloud when a NextCloudPi update is available",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "yes",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "DESTINATION":"Destino",
4 | "Sync Nextcloud data through rsync":"Sincronizar dados do Nextcloud através do rsync",
5 | "'user' needs SSH autologin from the NCP 'root' user at 'ip'\nif we are launching from ncp-web":"'user' precisa de autenticação SSH do usuário 'root' do NCP em 'ip'\nse estivermos iniciado do ncp-web",
6 | "nc-rsync":"nc-rsync"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-limits/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Configure system limits for NextCloudPi": "設定NextCloudPi的系統限制",
4 | "MAXFILESIZE": "最大文件大小(<=2G)",
5 | "MEMORYLIMIT": "內存限制",
6 | "PHPTHREADS": "PHP線程",
7 | "REDISMEM": "REDIS記憶大小",
8 | "Examples: 200M or 2G. Write 0 for autoconfig": "例如:輸入200M或是2G。若要讓系統自行設定,請輸入0",
9 | "nc-limits": "修改NCP系統限制"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan-auto/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "SCANINTERVAL":"掃瞄間隔時間",
5 | "Periodically scan NC for externally modified files":"定期檢查更新NextCloud使用者數據修改",
6 | "Set the time in minutes in SCANINTERVAL.\n\n>>> If there are too many files this can greatly affect performance. <<<":"''掃描間隔時間''的單位是分鐘\n>>>如果文件過多,可能將影響效能<<<",
7 | "nc-scan-auto":"定期掃描NC使用者文件"
8 |
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-update-nc-apps-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-update-nc-apps-auto",
3 | "name": "Nc-update-nc-apps-auto",
4 | "title": "nc-update-nc-apps-auto",
5 | "description": "Periodically update all installed Nextcloud Apps",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-backup-auto/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "DESTDIR": "Destino",
5 | "INCLUDEDATA": "Incluír dados",
6 | "COMPRESS": "Comprimir",
7 | "BACKUPDAYS": "Datas de backup",
8 | "BACKUPLIMIT": "Limites de backup",
9 | "Periodic backups":"Backup periódicos",
10 | "nc-backup-auto":"nc-backup-automatico"
11 |
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-export-ncp.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-export-ncp",
3 | "name": "Nc-export-ncp",
4 | "title": "nc-export-ncp",
5 | "description": "Export NextCloudPi configuration",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DIR",
11 | "name": "Directory",
12 | "value": "/media/USBdrive/",
13 | "suggest": "/media/USBdrive/",
14 | "type": "directory"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-restore/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "BACKUPFILE": "檔案位置",
4 | "Restore a previously backuped NC instance": "恢復Nextcloud備份",
5 | "This new installation will cleanup current\nNextCloud instance, including files and database.\n\n** perform backup before proceding **\n\nYou can use nc-backup": "這個動作將清除目前正使用的NextCloud,包括文件和數據庫。\n\n**您可以在開始動作之前使用nc-backup**",
6 | "nc-restore": "恢復NC備份"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/2_Feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 🚀 Feature Request
3 | about: RFC and ideas for new features and improvements
4 |
5 | ---
6 |
7 | **Description**
8 |
9 |
10 | **Example**
11 |
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-format-USB/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "LABEL":"名稱",
4 | "Format an external USB drive as a BTRFS partition (dangerous)":"將USB格式化成BTRFS格式",
5 | "Make sure that ONLY the USB drive that you want to format is plugged in.\ncareful, this will destroy any data in the USB drive\n\n** YOU WILL LOSE ALL YOUR USB DATA **":"請確認您只有連結需要格式化的USB\n**開始後您將會遺失該USB的所有資料**",
6 | "nc-format-USB":"格式化USB"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/bin/ncp-check-updates:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # print message if an update is available
4 |
5 | VERFILE=/usr/local/etc/ncp-version
6 | LATEST=/var/run/.ncp-latest-version
7 |
8 | if ncp-test-updates; then
9 | echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is outdated"
10 | echo -e "update to \e[1m$( cat $LATEST )\e[0m through 'ncp-config' or type 'sudo ncp-update'"
11 | else
12 | echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is up to date"
13 | fi
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/dnsmasq/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "開啟",
4 | "CACHESIZE": "緩存大小",
5 | "DNS server with cache": "DNS伺服器(緩存)",
6 | "DNSSERVER": "DNS伺服器",
7 | "DOMAIN": "域名",
8 | "Remember to point your PC and devices DNS or\nyou router DNS to your Raspberry Pi IP": "請記住指向你的PC和裝置所用的DNS或者路由器的DNS到你的Raspberry Pi的IP",
9 | "dnsmasq": "dnsmasq",
10 | "Run":"儲存"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/ncp-web/img/defaults.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-ramlogs.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-ramlogs",
3 | "name": "Nc-ramlogs",
4 | "title": "nc-ramlogs",
5 | "description": "mount logs in RAM to prevent SD degradation (faster, consumes more RAM)",
6 | "info": "You need to reboot for this change to take effect",
7 | "infotitle": "Warning",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-maintenance.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-maintenance",
3 | "name": "Nc-maintenanceMode",
4 | "title": "nc-maintenance-mode",
5 | "description": "Turn maintenance mode on or off",
6 | "info": "Open maintenance mode (ACTIVE=yes), or close maintenance mode (ACTIVE=no)",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Enabled",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-update-nextcloud.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-update-nextcloud",
3 | "name": "Nc-update-nextcloud",
4 | "title": "nc-update-nextcloud",
5 | "description": "Update current instance to a new Nextcloud version",
6 | "info": "Set to 0 to update to the latest available version",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "VERSION",
11 | "name": "Version",
12 | "value": "0",
13 | "suggest": "0"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/updates/1.47.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | source /usr/local/etc/library.sh
6 |
7 | # Stop metrics services if running
8 | for svc in prometheus-node-exporter ncp-metrics-exporter
9 | do
10 | service "$svc" status || [[ $? -ne 4 ]] || continue
11 | service "$svc" stop
12 | done
13 |
14 | # Reinstall metrics services
15 | install_app metrics
16 | is_active_app metrics && (
17 | export METRICS_SKIP_PASSWORD_CONFIG=true
18 | run_app metrics
19 | )
20 |
21 | exit 0
22 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-import-ncp.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-import-ncp",
3 | "name": "Nc-import-ncp",
4 | "title": "nc-import-ncp",
5 | "description": "Import NextCloudPi configuration from file",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "FILE",
11 | "name": "File",
12 | "value": "/media/USBdrive/ncp-config_xxxxxx.cfg",
13 | "suggest": "/media/USBdrive/ncp-config_xxxxxx.cfg",
14 | "type": "file"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-previews/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Generate previews for the gallery":"Gerar pré-visualização para a galeria",
4 | "nc-previews":"nc-pré-visualização",
5 | "This will make browsing the gallery much more smooth.\nFor big collections, this can take a LONG time, depending on your hardware":"Isso tornará a navegação na galeria muito mais suave.\nPara grandes coleções, isso pode levar um LONGO tempo, dependendo do seu hardware."
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/dnsmasq/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "CACHESIZE": "Tamaño de cache",
5 | "DNS server with cache": "Servidor DNS con cache",
6 | "DNSSERVER": "Servidor DNS",
7 | "DOMAIN": "Dominio",
8 | "Remember to point your PC and devices DNS or\nyou router DNS to your Raspberry Pi IP": "Recuerda apuntar las DNS tu PC y dispositivos\no de tu router a la IP de tu NCP",
9 | "dnsmasq": "dnsmasq"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/dnsmasq/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "CACHESIZE": "Tamanho do cache",
5 | "DNS server with cache": "Servidor DNS com cache",
6 | "DNSSERVER": "Servidor DNS",
7 | "DOMAIN": "Domínio",
8 | "Remember to point your PC and devices DNS or\nyou router DNS to your Raspberry Pi IP": "Lembre de apontar seu PC e equipamentos de DNS ou\n ou o seu roteador para o IP do seu NCP",
9 | "dnsmasq": "dnsmasq"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync-auto/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "DESTINATION":"目標資料夾",
5 | "SYNCDAYS":"同步間格天數",
6 | "Periodically sync Nextcloud data through rsync":"使用rsync定期同步Nextcloud數據",
7 | "DESTINATION can be a regular path for local sync\n'user' needs SSH autologin from the NCP 'root' user at 'ip'":"DESTINATION can be a regular path for local sync\n'user' needs SSH autologin from the NCP 'root' user at 'ip'",
8 | "nc-rsync-auto":"定期同步NC數據(rsync)"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/bin/ncp-docker-hook:
--------------------------------------------------------------------------------
1 | # Here we have the opportunity to make changes in the persistent volume configuration before
2 | # anything is started, after pulling a new image
3 |
4 | # adjust PHP version (in case of php upgrade)
5 | if php --version | grep -q v7.4 && [[ -f /data/etc/apache2/conf-available/php7.3-fpm.conf ]]; then
6 | a2disconf php7.3-fpm
7 | mv /data/etc/apache2/conf-available/php7.{3,4}-fpm.conf
8 | sed -i 's|php7.3|php7.4|g' /data/etc/apache2/conf-available/php7.4-fpm.conf
9 | a2enconf php7.4-fpm
10 | fi
11 |
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-snapshot.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-snapshot",
3 | "name": "Nc-snapshot",
4 | "title": "nc-snapshot",
5 | "description": "Create BTRFS snapshot of the datadir",
6 | "info": "Snapshots take up very little space because only the differences from one \nto the next are saved. This requires the datadir to be in a BTRFS filesystem",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "LIMIT",
11 | "name": "Limit",
12 | "value": "4",
13 | "suggest": "4"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/ncp-app/appinfo/routes.php:
--------------------------------------------------------------------------------
1 | OCA\NextCloudPi\Controller\PageController->index()
6 | *
7 | * The controller class has to be registered in the application.php file since
8 | * it's instantiated in there
9 | */
10 | return [
11 | 'routes' => [
12 | ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
13 | ]
14 | ];
15 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/modsecurity/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "開啟",
4 | "Experimental feature warning": "注意,這是測試功能!",
5 | "This feature is highly experimental and has only been tested with\na basic NextCloud installation. If a new App does not work disable it": "這個功能我們只有在基本的NextCloud進行過測試\n如果因開啟而導致某些功能無法運作,請將它停用",
6 | "Web Application Firewall for extra security (experimental)": "網頁中的防火牆(額外的安全性)",
7 | "modsecurity": "modsecurity",
8 | "Run":"儲存"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-limits/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Configure system limits for NextCloudPi": "Configura los límites de sistema para NextCloudPi",
4 | "MAXFILESIZE":"Tamaño máximo de archivo en subida",
5 | "MEMORYLIMIT": "Límite de memoria",
6 | "PHPTHREADS": "Hilos PHP",
7 | "REDISMEM": "Memoria Redis",
8 | "Set PHP threads to 0 in order to use all cores": "Configura los hilos a 0 para usar todos los cores",
9 | "nc-limits": "nc-limits"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-hdd-monitor.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-hdd-monitor",
3 | "name": "Nc-hdd-monitor",
4 | "title": "nc-hdd-monitor",
5 | "description": "Monitor HDD health automatically",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "EMAIL",
17 | "name": "Email",
18 | "value": "",
19 | "suggest": "optional@email.com"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-limits/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Configure system limits for NextCloudPi": "Configura os limites de sistema para NextCloudPi",
4 | "MAXFILESIZE":"Tamanho máximo de arquivo para upload",
5 | "MEMORYLIMIT": "Limite de memória",
6 | "PHPTHREADS": "THREADS PHP",
7 | "REDISMEM": "Memória Redis",
8 | "Set PHP threads to 0 in order to use all cores": "Configure as THREADS PHP à 0 para usar todas as cores",
9 | "nc-limits": "nc-limites"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "rullzer/previewgenerator",
3 | "config": {
4 | "optimize-autoloader": true,
5 | "classmap-authoritative": true,
6 | "platform": {
7 | "php": "7.3"
8 | }
9 | },
10 | "scripts": {
11 | "cs:fix": "php-cs-fixer fix",
12 | "cs:check": "php-cs-fixer fix --dry-run --diff",
13 | "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l"
14 | },
15 | "require-dev": {
16 | "nextcloud/coding-standard": "^0.3.0"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-hdd-test.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-hdd-test",
3 | "name": "Nc-hdd-test",
4 | "title": "nc-hdd-test",
5 | "description": "Check HDD health",
6 | "info": "Running no test will display test results",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "SHORTTEST",
11 | "name": "Short test",
12 | "value": "yes",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "LONGTEST",
17 | "name": "Long test",
18 | "value": "no",
19 | "type": "bool"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/letsencrypt/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Automatic signed SSL certificates": "Letsencrypt SSL 證書",
4 | "DOMAIN": "域名",
5 | "EMAIL": "電子郵件",
6 | "Internet access is required for this configuration to complete\nBoth ports 80 and 443 need to be accessible from the internet\n \nYour certificate will be automatically renewed every month": "使用letsencrypt提供的SSL證書\n在執行這個動作之前,請開啟網路且開啟Port 80和443\n完成此動作之後,SSL證書將每個月自動更新續期。",
7 | "Warning": "警告",
8 | "letsencrypt": "SSL證書"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_no-ip/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "啟動",
4 | "DDNS no-ip free provider (need account)": "DDNS免費提供商(No-ip)",
5 | "DOMAIN": "域名",
6 | "For this step to succeed, you need to register a noip account first.\nInternet access is required for this configuration to complete.": "若執行此步驟,您必須先從No-ip註冊一個帳戶\n這個動作需要網路才能完成",
7 | "PASS": "密碼",
8 | "TIME": "間隔時間(更新IP)",
9 | "USER": "使用者",
10 | "no-ip": "no-ip",
11 | "DDNS_no-ip": "no-ip(DDNS)"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-static-IP.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-static-IP",
3 | "name": "Nc-static-IP",
4 | "title": "nc-static-IP",
5 | "description": "Set up a static IP address ",
6 | "info": "Static IP (ACTIVE=yes), or DHCP (ACTIVE=no)",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "IP",
17 | "name": "IP",
18 | "value": "192.168.1.130",
19 | "suggest": "192.168.1.130"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/ncp-web/l10n/de.json:
--------------------------------------------------------------------------------
1 | {"translations": {
2 | "This application requires JavaScript for correct operation. Please %s enable JavaScript %s and reload the page.":
3 | "Diese Anwendung benötigt Javascript um richtig zu funktionieren. Bitte %s aktivieren Sie JavaScript %s und laden die Seite dann neu.",
4 | "version %s is available": "Eine neue Version ist verfügbar: %s.",
5 | "run": "Ausführen",
6 | "skip": "Überspringen",
7 | "close": "Schließen",
8 | "Configure NextCloudPi features": "NextCloudPi Funktionen konfigurieren"
9 | }}
10 |
--------------------------------------------------------------------------------
/ncp-web/wizard/bootstrap/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/etc/ncp-config.d/modsecurity.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "modsecurity",
3 | "name": "modsecurity",
4 | "title": "modsecurity",
5 | "description": "Web Application Firewall for extra security (experimental)",
6 | "info": "This feature is highly experimental and has only been tested with\na basic NextCloud installation. If a new App does not work disable it",
7 | "infotitle": "Experimental feature warning",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/ncp-web/img/close.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-restore-snapshot.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-restore-snapshot",
3 | "name": "Nc-restore-snapshot",
4 | "title": "nc-restore-snapshot",
5 | "description": "Restore data from a BTRFS snapshot",
6 | "info": "A snapshot of the data will be restored",
7 | "infotitle": "Restore NextCloud data snapshot",
8 | "params": [
9 | {
10 | "id": "SNAPSHOT",
11 | "name": "Snapshot Path",
12 | "value": "",
13 | "suggest": "/media/USBdrive/ncp-snapshots/daily_XXXX-XX-XX_XXXXXX",
14 | "type": "directory"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/NFS/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"開啟",
4 | "DIR":"資料夾",
5 | "SUBNET":"子網路遮罩",
6 | "USER":"使用者",
7 | "GROUP":"組別",
8 | "NFS network file system server (for Linux LAN)":"NFS網路檔案系統(Linux LAN)",
9 | "If we intend to modify the data folder through NFS,\nthen we have to synchronize NextCloud to make it aware of the changes.\n\nThis can be done manually or automatically using 'nc-scan' and 'nc-scan-auto'":"您若開啟NFS功能,那麼請您開啟'nc-scan'或'nc-scan-auto'來更新您的Nextcloud數據文件紀錄。",
10 | "Run":"儲存"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/unattended-upgrades.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "unattended-upgrades",
3 | "name": "Unattended-upgrades",
4 | "title": "unattended-upgrades",
5 | "description": "Automatic installation of security updates. Keep your cloud safe",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "yes",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "AUTOREBOOT",
17 | "name": "Autoreboot",
18 | "value": "yes",
19 | "type": "bool"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-forward-ports/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "For NextCloudPi to be able to setup your ports, UPnP must be activated\nin your router. Activate it now on your router admin webpage.\n\n** UPnP is considered a security risk **\n\nDon't forget to disable it afterwards": "如果要讓NextCloudPi自動設置您的Port,請在您的路由器開啟UPnP\n因鑒於安全性等問題,請在設定成功後關閉UPnP",
4 | "HTTPPORT": "http Port",
5 | "HTTPSPORT": "https Port",
6 | "nc-forward-ports": "端口轉發(UPnP)",
7 | "Set port forwarding to access from outside (UPnP)":"設置端口轉發(UPnP)"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-scan-auto/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"ativo",
4 | "SCANINTERVAL":"Intervalo de escaneamento",
5 | "Periodically scan NC for externally modified files":"Escanear periódicamente o NC por arquivos externamente modificados",
6 | "Set the time in minutes in SCANINTERVAL.\n\n>>> If there are too many files this can greatly affect performance. <<<":"Defina o tempo em minutos no Intervalo de escaneamento.\n>>> Se houverem muitos arquivos, isso pode afetar muito o desempenho <<<",
7 | "nc-scan-auto":"nc-scan-automático"
8 |
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ncp-web/img/info.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-swapfile.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-swapfile",
3 | "name": "Nc-swapfile",
4 | "title": "nc-swapfile",
5 | "description": "Move and resize your swapfile. Recommended to move to a permanent USB drive",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "SWAPFILE",
11 | "name": "Swapfile",
12 | "value": "/media/USBdrive/swap",
13 | "suggest": "/media/USBdrive/swap"
14 | },
15 | {
16 | "id": "SWAPSIZE",
17 | "name": "Swapsize",
18 | "value": "1024",
19 | "suggest": "1024"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/SSH/zh.json:
--------------------------------------------------------------------------------
1 | {"translations":{
2 | "ACTIVE":"開啟",
3 | "USER":"使用者",
4 | "PASS":"密碼",
5 | "CONFIRM":"確認",
6 | "Run":"儲存",
7 | "Activate or deactivate SSH":"SSH",
8 | "In order to enable SSH, the password for user 'pi' can NOT remain set to the default raspberry. \nYou HAVE to create a NEW password for 'pi' if you want this program to enable SSH, it will fail if you dont!\nThe same will happen with user 'root' and password '1234'\nNote: Use normal AlphaNumeric, the only special characters allowed are .,@-_/":"請在開啟前,先將預設密碼修改,否則將無法開啟成功\n注意 : 我們只允許這些特殊字符 .,@-_/"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-rsync-auto/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"Ativo",
4 | "DESTINATION":"Destino",
5 | "SYNCDAYS":"Dias de sincronização",
6 | "Periodically sync Nextcloud data through rsync":"Sincronize periodicamente os dados do NextCloud através do rsync",
7 | "DESTINATION can be a regular path for local sync\n'user' needs SSH autologin from the NCP 'root' user at 'ip'":"o Destino pode ser um caminho regular para a sincronização local\n'user' precisa de autenticação SSH do usuário 'root' do NCP em 'ip'",
8 | "nc-rsync-auto":"nc-rsync-automático"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-format-USB/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "LABEL":"Etiqueta",
4 | "Format an external USB drive as a BTRFS partition (dangerous)":"Formata um USB externo como uma partição BTRFS (perigoso)",
5 | "Make sure that ONLY the USB drive that you want to format is plugged in.\ncareful, this will destroy any data in the USB drive\n\n** YOU WILL LOSE ALL YOUR USB DATA **":"Tenha certeza que apenas o USB que deseja formatar está plugado.\n**Cuidado,isto vai distruir qualquer dado que esteja no USB**\n\n**PERDERÁ TODOS OS DADOS DO USB",
6 | "nc-format-USB":"nc-formatar-USB"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-encrypt.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-encrypt",
3 | "name": "Nc-encrypt",
4 | "title": "nc-encrypt",
5 | "description": "Data at rest encryption for NCP",
6 | "info": "The encryption password will be needed after every reboot.\nThis will increase CPU usage.",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "PASSWORD",
17 | "name": "Password",
18 | "value": "",
19 | "suggest": "password",
20 | "type": "password"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-format-USB.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-format-USB",
3 | "name": "Nc-format-USB",
4 | "title": "nc-format-USB",
5 | "description": "Format an external USB drive as a BTRFS partition (dangerous)",
6 | "info": "Make sure that ONLY the USB drive that you want to format is plugged in.\ncareful, this will destroy any data in the USB drive\n\n** YOU WILL LOSE ALL YOUR USB DATA **",
7 | "infotitle": "Instructions for USB drive formatting",
8 | "params": [
9 | {
10 | "id": "LABEL",
11 | "name": "Label",
12 | "value": "myCloudDrive",
13 | "suggest": "myCloudDrive"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-passwd.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-passwd",
3 | "name": "Nc-passwd",
4 | "title": "nc-passwd",
5 | "description": "Change password for the NextCloudPi Panel",
6 | "info": "Please note some special characters are not allowed here, avoid using ) } ; # in password",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "PASSWORD",
11 | "name": "Password",
12 | "value": "",
13 | "type": "password"
14 | },
15 | {
16 | "id": "CONFIRM",
17 | "name": "Confirm password",
18 | "value": "",
19 | "suggest": "password",
20 | "type": "password"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-rsync.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-rsync",
3 | "name": "Nc-rsync",
4 | "title": "nc-rsync",
5 | "description": "Sync Nextcloud data remotely or locally through rsync",
6 | "info": "'user' needs SSH autologin from the NCP 'root' user at 'ip'\nfor remote sync",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DESTINATION",
11 | "name": "Destination",
12 | "value": "user@ip:/path/to/sync",
13 | "suggest": "user@ip:/path/to/sync"
14 | },
15 | {
16 | "id": "PORTNUMBER",
17 | "name": "SSH port number",
18 | "value": "22",
19 | "suggest": "22"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-init.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-init",
3 | "name": "Nc-init",
4 | "title": "nc-init",
5 | "description": "(Re)initiate Nextcloud to a clean configuration",
6 | "info": "This action will configure NextCloud to NextCloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n",
7 | "infotitle": "Clean NextCloud configuration",
8 | "params": [
9 | {
10 | "id": "ADMINUSER",
11 | "name": "Admin user",
12 | "value": "ncp",
13 | "suggest": "ncp"
14 | },
15 | {
16 | "id": "ADMINPASS",
17 | "name": "Admin password",
18 | "value": "ownyourbits",
19 | "type": "password"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/modsecurity/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "Experimental feature warning": "Aviso de característica experimental",
5 | "This feature is highly experimental and has only been tested with\na basic NextCloud installation. If a new App does not work disable it": "Esta característica é altamente experimental e só foi testada com\n instalações básicas do Nextcloud. Se algum App não funcionar corretamente, desabilita-o",
6 | "Web Application Firewall for extra security (experimental)": "Aplicação Web de Firewall para uma maior segurança (experimental)",
7 | "modsecurity": "Modo segurança"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/letsencrypt/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Automatic signed SSL certificates": "Certificados SSL firmados automáticamente",
4 | "DOMAIN": "Dominio",
5 | "EMAIL": "E-mail",
6 | "Internet access is required for this configuration to complete\nBoth ports 80 and 443 need to be accessible from the internet\n \nYour certificate will be automatically renewed every month": "Se requiere acceso a internet para completar este paso\nAmbos puertos 80 y 443 necesitan estar accesibles desde internet\n \nTus certificados se renovarán automáticamente cada mes",
7 | "Warning": "Aviso",
8 | "letsencrypt": "letsencrypt"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_no-ip/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Ativo",
4 | "DDNS no-ip free provider (need account)": "Provedor gratuito de DDNS no-ip (conta requerida)",
5 | "DOMAIN": "Domínio",
6 | "For this step to succeed, you need to register a noip account first.\nInternet access is required for this configuration to complete.": "Para que este passo ocorra corretamente, é necessario registrar uma conta no no-ip.org previamente.\nÉ requerido acesso a internet para que esta configuração seja completa",
7 | "PASS": "Senha",
8 | "TIME": "Intervalo",
9 | "USER": "Usuário ",
10 | "no-ip": "no-ip"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/DDNS_no-ip/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "DDNS no-ip free provider (need account)": "Proveedor gratuito de DDNS no-ip (requiere cuenta)",
5 | "DOMAIN": "Dominio",
6 | "For this step to succeed, you need to register a noip account first.\nInternet access is required for this configuration to complete.": "Para que este paso se ejecute correctamente, es necesario registrar una cuenta con no-ip.org previamente.\nSe requiere acceso a internet para activar esta configuración",
7 | "PASS": "Contraseña",
8 | "TIME": "Intervalo",
9 | "USER": "Usuario",
10 | "no-ip": "no-ip"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-automount/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "Automount USB drives by plugging them in":"自動掛載USB裝置",
4 | "ACTIVE":"開啟",
5 | "Plugged in USB drives will be automounted under /media\non boot or at the moment of insertion.\n\nFormat your drive as ext4 in order to move NC datafolder or database\nVFAT or NTFS is not recommended for this task, as it does not suport permissions\n\nIMPORTANT: halt or umount the drive before extracting":
6 | "開啟此功能後,插入USB後會自動掛載在/media資料夾\n若要使用此USB來修改NextCloud的用戶資料位置及資料庫,建議格式化為ext4\n建議不要格式化為VFAT和NTFS,NextcloudPi不支援權限。\n\n**若要移除USB,請將Raspberry Pi 關機或使用安全移除USB功能(commands),以防止系統錯誤及資料遺失**",
7 | "nc-automount":"掛載USB"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-nextcloud/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "VER":"版本",
4 | "BETA":"測試版",
5 | "MAXFILESIZE":"最大檔案大小",
6 | "MEMORYLIMIT":"記憶體限制",
7 | "MAXTRANSFERTIME":"最大傳輸時間",
8 | "NextCloud installation":"重新下載安裝NextCloud",
9 | "This new installation will cleanup current\nNextCloud instance, including files and database.\n\nYou can later use nc-init to configure to NextCloudPi defaults\n\n** perform backup before proceding **\n\nYou can use nc-backup ":"這個動作安裝將清理目前NextCloud的所有內容,所有的文件及數據庫都將會被刪除\n安裝完後您可以使用初始化NextCloud來快速設定回系統默認值以及資料庫\n或者您可以在開始動作前先進行備份(NC備份)",
10 | "nc-nextcloud":"重新安裝NC",
11 | "Install any NextCloud version":"下載安裝NextCloud"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-restore/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "BACKUPFILE": "Archivo de backup",
4 | "Restore NextCloud backup": "Restaurar backup de Nextcloud",
5 | "Restore a previously backuped NC instance": "Restaurar una instancia previamente guardada",
6 | "This new installation will cleanup current\nNextCloud instance, including files and database.\n\n** perform backup before proceding **\n\nYou can use nc-backup": "Esta nueva instalación borrará la actual\ninstancia de Nextcloud, incluyendo archivos y base de datos\n\n** Realiza una copia de seguridad antes de proceder **\n\nPuedes usar nc-backup",
7 | "nc-restore": "nc-restore"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-restore/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "BACKUPFILE": "Arquivo de backup",
4 | "Restore NextCloud backup": "Restaurar backup do Nextcloud",
5 | "Restore a previously backuped NC instance": "Restaurar uma instâcia previamente guardada",
6 | "This new installation will cleanup current\nNextCloud instance, including files and database.\n\n** perform backup before proceding **\n\nYou can use nc-backup": "Esta nova instalação limpará a instância atual\ndo Nextcloud, incluindo arquivos e Base de Dados\n\n** Realize uma cópia de segurança antes de proceder **\n\nVocê pode usar nc-backup",
7 | "nc-restore": "nc-restauração"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-restore.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-restore",
3 | "name": "Nc-restore",
4 | "title": "nc-restore",
5 | "description": "Restore a previously backuped NC instance",
6 | "info": "This new installation will cleanup current\nNextCloud instance, including files and database.\n\n** perform backup before proceding **\n\nYou can use 'nc-backup'",
7 | "infotitle": "Restore NextCloud backup",
8 | "params": [
9 | {
10 | "id": "BACKUPFILE",
11 | "name": "Backup file",
12 | "value": "/media/USBdrive/ncp-backups/nextcloud-bkp_xxxxxxxx.tar",
13 | "suggest": "/media/USBdrive/ncp-backups/nextcloud-bkp_xxxxxxxx.tar",
14 | "type": "file"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/spDYN.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "spDYN",
3 | "name": "Dynamic DNS from spDYN",
4 | "title": "spDYN",
5 | "description": "Free Dynamic DNS provider (need account from spdyn.de)",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DOMAIN",
17 | "name": "Domain",
18 | "value": "mycloud.spdns.de",
19 | "suggest": "mycloud.spdns.de"
20 | },
21 | {
22 | "id": "TOKEN",
23 | "name": "Token",
24 | "value": "your-spdns-token",
25 | "suggest": "your-spdns-token"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/modsecurity/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "ACTIVE": "Activado",
4 | "Experimental feature warning": "Aviso de característica experimental",
5 | "This feature is highly experimental and has only been tested with\na basic NextCloud installation. If a new App does not work disable it": "Esta característica es altamente experimental y tan solo ha sido testeada contra\nuna instalación de Nextcloud básica. Si alguna App no funciona correctamente, deshabilítalo",
6 | "Web Application Firewall for extra security (experimental)": "Web Application Firewall para una mayor seguridad (experimental)",
7 | "modsecurity": "modsecurity"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/letsencrypt/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "Automatic signed SSL certificates": "Certificados SSL assinados automaticamente",
4 | "DOMAIN": "Domínio",
5 | "EMAIL": "E-mail",
6 | "Internet access is required for this configuration to complete\nBoth ports 80 and 443 need to be accessible from the internet\n\nYour certificate will be automatically renewed every month": "É requerido acesso a internet para que esta configuração seja completa \nAmbas as portas 80 e 443 precisam estar acessíveis pela internet \n \nSeu certificado será automaticamente renovado todo mês",
7 | "Warning": "Aviso",
8 | "letsencrypt": "letsencrypt"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-datadir/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "DATADIR":"數據資料儲存資料夾",
4 | "Change your data dir to a new location, like an external USB drive":"移動Nextcloud用戶數據資料夾(USB)",
5 | "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\nAlso please note that the default location, when first installed is /var/www/nextcloud/data. \nMove it to the desired location by editing the DATADIR= field, the PATH shown is an example.":"NextcloudPi不支持非Unix文件系統(如NTFS)的外接儲存空間\n建議您使用讀取快速且運作時間長的外接儲存空間,否則資料庫將無法運作\n請注意,系統默認資料庫的位置為 /var/www/nextcloud/data\n**若移動失敗,我們會將數據庫移回SD**",
6 | "nc-datadir":"移動用戶資料夾(NC)"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/duckDNS.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "duckDNS",
3 | "name": "DynamicDNS from duckDNS",
4 | "title": "duckDNS",
5 | "description": "Free Dynamic DNS provider",
6 | "info": "Need account from https://duckdns.org",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DOMAIN",
17 | "name": "Domain",
18 | "value": "mycloud.duckdns.org",
19 | "suggest": "mycloud.duckdns.org"
20 | },
21 | {
22 | "id": "TOKEN",
23 | "name": "Token",
24 | "value": "your-duckdns-token",
25 | "suggest": "your-duckdns-token"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/updates/1.25.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8 |
9 | # all images
10 |
11 | # disable old TLS versions
12 | file=/etc/apache2/conf-available/http2.conf
13 | grep -q '^SSLProtocol all -SSLv2 -SSLv3' "${file}" && {
14 | sed -i 's|^SSLProtocol .*|SSLProtocol -all +TLSv1.2|' "${file}"
15 | bash -c "sleep 10 && service apache2 reload" &>/dev/null &
16 | }
17 |
18 | # fix nc-backup-auto
19 | is_active_app nc-backup-auto && run_app nc-backup-auto
20 |
21 | # docker images only
22 | [[ -f /.docker-image ]] && {
23 | :
24 | }
25 |
26 | # for non docker images
27 | [[ ! -f /.docker-image ]] && {
28 | :
29 | }
30 |
31 | exit 0
32 |
--------------------------------------------------------------------------------
/updates/1.30.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8 |
9 | # all images
10 |
11 | # make sure these are installed as well in all upgrade paths
12 | apt_install php${PHPVER}-gmp haveged lsb-release php-smbclient exfat-fuse exfat-utils file
13 |
14 | # for NC19.0.1
15 | apt_install php-bcmath
16 |
17 | ## delayed in bg so it does not kill the connection, and we get AJAX response
18 | bash -c "sleep 3; service php${PHPVER}-fpm restart" &>/dev/null &
19 |
20 |
21 | # docker images only
22 | [[ -f /.docker-image ]] && {
23 | :
24 | }
25 |
26 | # for non docker images
27 | [[ ! -f /.docker-image ]] && {
28 | :
29 | }
30 |
31 | exit 0
32 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-admin.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-admin",
3 | "name": "NC-admin, password utility",
4 | "title": "nc-admin",
5 | "description": "Change or view the current password for the Nextcloud admin user",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "USER",
11 | "name": "User",
12 | "value": "ncp",
13 | "suggest": "ncp"
14 | },
15 | {
16 | "id": "PASSWORD",
17 | "name": "Password",
18 | "value": "",
19 | "suggest": "password",
20 | "type": "password"
21 | },
22 | {
23 | "id": "CONFIRM",
24 | "name": "Confirm password",
25 | "value": "",
26 | "suggest": "same password",
27 | "type": "password"
28 | }
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/NFS/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "ACTIVE":"ativo",
4 | "DIR":"Diretório",
5 | "SUBNET":"Sub-rede",
6 | "USER":"Usuário",
7 | "GROUP":"Grupo",
8 | "NFS network file system server (for Linux LAN)":"Servidor do sistema de arquivos de rede NFS (para LAN do Linux)",
9 | "If we intend to modify the data folder through NFS,\nthen we have to synchronize NextCloud to make it aware of the changes.\n\nThis can be done manually or automatically using 'nc-scan' and 'nc-scan-auto'":"Se nós pretendemos modificar a pasta de dados através do NFS, então temos que sincronizar o NextCloud para torná-lo ciente das mudanças.\n\nIsso pode ser feito manualmente ou automaticamente usando 'nc-scan' e 'nc-scan-auto",
10 | "Run":"Executar"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-forward-ports.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-forward-ports",
3 | "name": "Nc-forward-ports",
4 | "title": "nc-forward-ports",
5 | "description": "Set port forwarding to access from outside",
6 | "info": "For NextCloudPi to be able to setup your ports, UPnP must be activated\nin your router. Activate it now on your router admin webpage.\n\n** UPnP is considered a security risk **\n\nDon't forget to disable it afterwards",
7 | "infotitle": "Instructions for UPnP Port Forwarding",
8 | "params": [
9 | {
10 | "id": "HTTPSPORT",
11 | "name": "Https port",
12 | "value": "443",
13 | "suggest": "443"
14 | },
15 | {
16 | "id": "HTTPPORT",
17 | "name": "Http port",
18 | "value": "80",
19 | "suggest": "80"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/tests/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | .
10 |
11 |
12 |
13 |
14 | ../
15 |
16 | ../tests
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/tests/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | .
10 |
11 |
12 |
13 |
14 | ../
15 |
16 | ../tests
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-previews-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-previews-auto",
3 | "name": "Nc-previews-auto",
4 | "title": "nc-previews-auto",
5 | "description": "Periodically generate previews for the gallery",
6 | "info": "This will make browsing the gallery much more smooth.\nWhen active, previews will be generated every night at 2am.\nFor big collections, this can take a LONG time depending on your hardware.\nYou can specify a maximum duration in minutes, or 0 for no limit.",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "yes",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "RUNTIME",
17 | "name": "Max. runtime (in minutes)",
18 | "value": "0",
19 | "suggest": "0"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-trusted-proxies.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-trusted-proxies",
3 | "name": "Nc-trusted-proxies",
4 | "title": "nc-trusted-proxies",
5 | "description": "Manually add trusted proxies",
6 | "info": "This operation is only needed if NCP is running behind a reverse proxy and the true client IP address is needed",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "PROXY1",
11 | "name": "Trusted Proxy #1",
12 | "value": "",
13 | "suggest": "my.proxy.com"
14 | },
15 | {
16 | "id": "PROXY2",
17 | "name": "Trusted Proxy #2",
18 | "value": "",
19 | "suggest": "other.proxy.com"
20 | },
21 | {
22 | "id": "PROXY3",
23 | "name": "Trusted Proxy #3",
24 | "value": "",
25 | "suggest": "172.0.0.1"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-forward-ports/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "For NextCloudPi to be able to setup your ports, UPnP must be activated\nin your router. Activate it now on your router admin webpage.\n\n** UPnP is considered a security risk **\n\nDon't forget to disable it afterwards": "Para o NextCloudPi conseguir configurar as portas, UPnp deve estar ativo\nno seu Roteador.A ativação é feita na pagina de Web administração do seu roteador\n\n**UPnP é considerado um risco de segurança**\n\nNão esqueça de desativá-lo depois.",
4 | "HTTPPORT": "Porta http",
5 | "HTTPSPORT": "Porta https",
6 | "nc-forward-ports": "nc-portas-encaminhadas (UPnP)",
7 | "Set port forwarding to access from outside (UPnP)":"Configurar a porta à ser encaminhada para acesso externo (UPnP)"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/bin/ncp-check-nc-version:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # notify latest available NC version
4 |
5 | set -e
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER
8 |
9 | CURRENT="$(ncc status | grep "version:" | awk '{ print $3 }')"
10 | LATEST="$(wget -qO- https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/etc/ncp.cfg | jq -r .nextcloud_version)"
11 | NOTIFIED=/var/run/.nc-version-notified
12 |
13 | test -e "${NOTIFIED}" && [[ "${LATEST}" == "$( cat "${NOTIFIED}" )" ]] && {
14 | echo "Found update from ${CURRENT} to ${LATEST}. Already notified"
15 | exit 0
16 | }
17 |
18 | if is_more_recent_than "${LATEST}" "${CURRENT}"; then
19 | notify_admin \
20 | "Nextcloud update" \
21 | "Update from ${CURRENT} to ${LATEST} is available. Update from https://$(get_ip):4443"
22 | echo "${LATEST}" > "${NOTIFIED}"
23 | fi
24 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-trusted-domains.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-trusted-domains",
3 | "name": "Nc-trusted-domains",
4 | "title": "nc-trusted-domains",
5 | "description": "Manually add trusted domains",
6 | "info": "Note that this is normally not needed, as NCP will do this automatically for you in most cases",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DOMAIN1",
11 | "name": "Trusted Domain #1",
12 | "value": "",
13 | "suggest": "example.ownyourbits.com"
14 | },
15 | {
16 | "id": "DOMAIN2",
17 | "name": "Trusted Domain #2",
18 | "value": "",
19 | "suggest": "example.ownyourbits.com"
20 | },
21 | {
22 | "id": "DOMAIN3",
23 | "name": "Trusted Domain #3",
24 | "value": "",
25 | "suggest": "192.168.1.15"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-datadir.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-datadir",
3 | "name": "Nc-datadir",
4 | "title": "nc-datadir",
5 | "description": "Change your data dir to a new location, like a USB or SATA drive",
6 | "info": "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\nAlso please note that the default location, when first installed is /var/www/nextcloud/data. \nMove it to the desired location by editing the DATADIR= field, the PATH shown is an example.",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DATADIR",
11 | "name": "Data directory",
12 | "value": "/media/USBdrive/ncdata",
13 | "suggest": "/media/USBdrive/ncdata",
14 | "default": "/var/www/nextcloud/data",
15 | "type": "directory"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-nextcloud.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-nextcloud",
3 | "name": "Nc-nextcloud",
4 | "title": "nc-nextcloud",
5 | "description": "Install any NextCloud version",
6 | "info": "WARNING: this will completely wipe out your current instance",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "VER",
11 | "name": "Version",
12 | "value": "25.0.4"
13 | },
14 | {
15 | "id": "MAXFILESIZE",
16 | "name": "Maximum file size",
17 | "value": "10G",
18 | "suggest": "10G"
19 | },
20 | {
21 | "id": "MEMORYLIMIT",
22 | "name": "Memory limit",
23 | "value": "768M",
24 | "suggest": "768M"
25 | },
26 | {
27 | "id": "MAXTRANSFERTIME",
28 | "name": "Maximum transfer time",
29 | "value": "3600",
30 | "suggest": "3600"
31 | }
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-previews.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-previews",
3 | "name": "Nc-previews",
4 | "title": "nc-previews",
5 | "description": "Generate previews for the gallery",
6 | "info": "This will make browsing the gallery much more smooth.\nFor big collections, this can take a LONG time, depending on your hardware\nOptionally, include a path in the form '/_user_/files/_path_' (incremental only)",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "CLEAN",
11 | "name": "Clean first",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "INCREMENTAL",
17 | "name": "Incremental",
18 | "value": "yes",
19 | "type": "bool"
20 | },
21 | {
22 | "id": "PATH1",
23 | "name": "Path",
24 | "value": "",
25 | "suggest": "/ncp/files/Documents"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-database/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "DBDIR":"位置",
4 | "This utility allows you to move your database to a new location, like an external USB drive.":"移動資料庫到新的位置(USB)",
5 | "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\n\nYou need to use a USB drive that is permanently on and is responsive \nor the database will fail.\n\nPlease note that the default location, when first installed is /var/lib/mysql/. \nMove it to the desired location by editing the DBDIR= field, the one shown is an example.\n\n** If it ever fails with a white page, move the database back to the SD **":"NextcloudPi不支持非Unix文件系統(如NTFS)的外接儲存空間\n建議您使用讀取快速且運作時間長的外接儲存空間,否則資料庫將無法運作\n請注意,系統默認資料庫的位置為 /var/lib/mysql/ \n**若移動失敗,我們會將數據庫移回SD **",
6 | "nc-database":"移動資料庫"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-forward-ports/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "For NextCloudPi to be able to setup your ports, UPnP must be activated\nin your router. Activate it now on your router admin webpage.\n\n** UPnP is considered a security risk **\n\nDon't forget to disable it afterwards": "Para que NextCloudPi sea capaz de configurar tus puertos, UPnP debe estar activado\nen tu router. Actívalo ahora en la página de administración de tu router\n\n** UPnP se considera un riesgo de seguridad\n\nNo olvides deshabilitarlo más tarde",
4 | "HTTPPORT": "Puerto HTTP",
5 | "HTTPSPORT": "Puerto HTTPS",
6 | "Instructions for UPnP Port Forwarding": "Instrucciones para UPnP Port Forwarding",
7 | "Set port forwarding to access from outside (UPnP)": "Configura port forwarding para acceder desde el exterior (UPnP)",
8 | "nc-forward-ports": "nc-forward-ports"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/freeDNS.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "freeDNS",
3 | "name": "Dynamic DNS from freeDNS",
4 | "title": "freeDNS",
5 | "description": "FreeDNS DynamicDNS service",
6 | "info": "Need account from https://freedns.afraid.org/",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "UPDATEHASH",
17 | "name": "Update Hash",
18 | "value": "",
19 | "suggest": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJK1234567"
20 | },
21 | {
22 | "id": "DOMAIN",
23 | "name": "Domain",
24 | "value": "mynextcloud.example.com",
25 | "suggest": "mynextcloud.example.com"
26 | },
27 | {
28 | "id": "UPDATEINTERVAL",
29 | "name": "Update periodicity (in minutes)",
30 | "value": "30",
31 | "suggest": "30"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-automount.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-automount",
3 | "name": "Nc-automount",
4 | "title": "nc-automount",
5 | "description": "Automount USB drives by plugging them in",
6 | "info": "Plugged in USB drives will be automounted under /media\non boot or at the moment of insertion.\n\nFormat your drive as ext4/btrfs in order to move NC datafolder or database. \n\nVFAT or NTFS is not recommended for this task, as it does not suport permissions \n\n WARNING If you want add a second drive later, make sure you have added a LABEL to the first and all other drives to be mounted when formating, as they will then be mounted at /media/LABEL instead of /media/USBdrive \n\nIMPORTANT: halt or umount the drive before removing",
7 | "infotitle": "Automount notes",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/ncp-web/img/settings-white.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-nextcloud/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "VER":"Versão",
4 | "BETA":"BETA",
5 | "MAXFILESIZE":"Tamanho Maximo de upload",
6 | "MEMORYLIMIT":"Limíte de Memória",
7 | "MAXTRANSFERTIME":"Tempo máximo de transferência",
8 | "NextCloud installation":"Instalação NextCloud",
9 | "This new installation will cleanup current\nNextCloud instance, including files and database.\n\nYou can later use nc-init to configure to NextCloudPi defaults\n\n** perform backup before proceding **\n\nYou can use nc-backup ":"Esta nova instalação irá apagar a instância atual\ndo NextCloud, incluindo os arquivos e o Banco de Dados.\nVocê depois pode usar o nc-init para configurar os padrões do NextCloudPi\n\n**Realize Backup antes de Continuar**\n\nVocê pode usar o nc-backup",
10 | "nc-nextcloud":"nc-nextcloud",
11 | "Install any NextCloud version":"Instalar qualquer versão NextCloud"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/dnsmasq.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "dnsmasq",
3 | "name": "Dnsmasq, to serve names of local machines which are not in the global DNS",
4 | "title": "dnsmasq",
5 | "description": "DNS server with cache",
6 | "info": "Remember to point your PC and devices DNS or\nyour router DNS to your Raspberry Pi IP",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DOMAIN",
17 | "name": "Domain",
18 | "value": "mycloud.ownyourbits.com",
19 | "suggest": "mycloud.ownyourbits.com"
20 | },
21 | {
22 | "id": "DNSSERVER",
23 | "name": "DNS server",
24 | "value": "8.8.8.8",
25 | "suggest": "8.8.8.8"
26 | },
27 | {
28 | "id": "CACHESIZE",
29 | "name": "Cache size",
30 | "value": "150",
31 | "suggest": "150"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/metrics.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "metrics",
3 | "name": "System Metrics, that can be collected by an external server",
4 | "title": "System Metrics",
5 | "description": "Prometheus metrics for things like, CPU/memory/disk usage etc.",
6 | "info": "In order to use these metrics, you will need to setup at least an external Prometheus instance. You can find a quick and easy way to start at https://github.com/theCalcaholic/ncp-monitoring-dashboard",
7 | "infotitle": "External service required",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "USER",
17 | "name": "Metrics User",
18 | "value": "metrics",
19 | "suggest": "metrics"
20 | },
21 | {
22 | "id": "PASSWORD",
23 | "name": "Metrics Password",
24 | "value": "",
25 | "type": "password"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-limits.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-limits",
3 | "name": "Nc-limits",
4 | "title": "nc-limits",
5 | "description": "Configure system limits for NextCloudPi",
6 | "info": "Examples: 200M or 2G. Write 0 for autoconfig",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "MAXFILESIZE",
11 | "name": "Maximum file size",
12 | "value": "10G",
13 | "default": "10G",
14 | "suggest": "10G"
15 | },
16 | {
17 | "id": "MEMORYLIMIT",
18 | "name": "Memory limit",
19 | "value": "0",
20 | "default": "0",
21 | "suggest": "0"
22 | },
23 | {
24 | "id": "PHPTHREADS",
25 | "name": "PHP threads",
26 | "value": "0",
27 | "default": "0",
28 | "suggest": "0"
29 | },
30 | {
31 | "id": "REDISMEM",
32 | "name": "Redis memory",
33 | "value": "0",
34 | "default": "0",
35 | "suggest": "0"
36 | }
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/SSH/pt.json:
--------------------------------------------------------------------------------
1 | {"translations":{
2 | "ACTIVE":"Ativo",
3 | "USER":"Usuario",
4 | "PASS":"Senha",
5 | "CONFIRM":"Confirmar",
6 | "Run":"Executar ",
7 | "Activate or deactivate SSH":"Ativar ou desativar SSH",
8 | "In order to enable SSH, the password for user 'pi' can NOT remain set to the default raspberry. \nYou HAVE to create a NEW password for 'pi' if you want this program to enable SSH, it will fail if you dont!\nThe same will happen with user 'root' and password '1234'\nNote: Use normal AlphaNumeric, the only special characters allowed are .,@-_/":"Para habilitar o SSH, a senha para o usuário 'pi' NÃO pode permanecer definida como raspberry padrão. \nVocê DEVE criar uma nova senha para 'pi' se quiser que este programa habilite o SSH, ele falhará se você não o fizer!\nO mesmo acontecerá com o usuário 'root' e a senha '1234'\nNota: Use Alfanuméricos normais, os únicos caracteres especiais permitidos são: . , @ - _ /"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-rsync-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-rsync-auto",
3 | "name": "Nc-rsync-auto",
4 | "title": "nc-rsync-auto",
5 | "description": "Periodically sync Nextcloud data through rsync",
6 | "info": "DESTINATION can be a regular path for local sync\n'user' needs SSH autologin from the NCP 'root' user at 'ip'",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DESTINATION",
17 | "name": "Destination",
18 | "value": "user@ip:/path/to/sync",
19 | "suggest": "user@ip:/path/to/sync"
20 | },
21 | {
22 | "id": "PORTNUMBER",
23 | "name": "SSH port number",
24 | "value": "22",
25 | "suggest": "22"
26 | },
27 | {
28 | "id": "SYNCDAYS",
29 | "name": "Sync periodicity (in days)",
30 | "value": "3",
31 | "suggest": "3"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-backup.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-backup",
3 | "name": "nc-backup",
4 | "title": "nc-backup",
5 | "description": "Backup this NC instance to a file",
6 | "info": "This will always include the current Nextcloud directory and the Database.\nYou can choose to include or exclude NC-data.",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DESTDIR",
11 | "name": "Destination directory",
12 | "value": "/media/USBdrive/ncp-backups",
13 | "suggest": "/media/USBdrive/ncp-backups"
14 | },
15 | {
16 | "id": "INCLUDEDATA",
17 | "name": "Include data",
18 | "value": "no",
19 | "type": "bool"
20 | },
21 | {
22 | "id": "COMPRESS",
23 | "name": "Compress",
24 | "value": "no",
25 | "type": "bool"
26 | },
27 | {
28 | "id": "BACKUPLIMIT",
29 | "name": "Number of backups to keep",
30 | "value": "4",
31 | "suggest": "4"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/UFW.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "UFW",
3 | "name": "UFW Uncomplicated Firewall, a netfilter firewall",
4 | "title": "UFW",
5 | "description": "Uncomplicated Firewall, program for managing a netfilter firewall",
6 | "info": "Beware of blocking the SSH port you are using! SSH uses port 22 by default, ports 80 and 443 are for the webserver",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "HTTP",
17 | "name": "Http",
18 | "value": "80",
19 | "default": "80",
20 | "suggest": "80"
21 | },
22 | {
23 | "id": "HTTPS",
24 | "name": "Https",
25 | "value": "443",
26 | "default": "443",
27 | "suggest": "443"
28 | },
29 | {
30 | "id": "SSH",
31 | "name": "Ssh",
32 | "value": "22",
33 | "default": "22",
34 | "suggest": "22"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-database.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-database",
3 | "name": "Nc-database",
4 | "title": "nc-database",
5 | "description": "Move your database to a new location, like a USB drive",
6 | "info": "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\n\nYou need to use a USB drive that is permanently on and is responsive \nor the database will fail.\n\nPlease note that the default location, when first installed is /var/lib/mysql/. \nMove it to the desired location by editing the DBDIR= field, the one shown is an example.\n\n** If it ever fails with a white page, move the database back to the SD **",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "DBDIR",
11 | "name": "Database directory",
12 | "value": "/media/USBdrive/ncdatabase",
13 | "suggest": "/media/USBdrive/ncdatabase",
14 | "default": "/var/lib/mysql",
15 | "type": "directory"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-scan.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-scan",
3 | "name": "Nc-scan",
4 | "title": "nc-scan",
5 | "description": "Scan NC for externally modified files",
6 | "info": "Optionally we can specify up to 3 paths in the form '_user_/files/_path_'",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "RECURSIVE",
11 | "name": "Recursive",
12 | "value": "yes",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "NONEXTERNAL",
17 | "name": "Ignore external files",
18 | "value": "no",
19 | "type": "bool"
20 | },
21 | {
22 | "id": "PATH1",
23 | "name": "Path",
24 | "value": "",
25 | "suggest": "/ncp/files/Documents"
26 | },
27 | {
28 | "id": "PATH2",
29 | "name": "Path",
30 | "value": "",
31 | "suggest": "/family/files/Photos"
32 | },
33 | {
34 | "id": "PATH3",
35 | "name": "Path",
36 | "value": "",
37 | "suggest": "/family/files/Videos"
38 | }
39 | ]
40 | }
41 |
--------------------------------------------------------------------------------
/ncp-web/img/red-circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
34 |
--------------------------------------------------------------------------------
/bin/ncp-check-version:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # update latest available version in /var/run/.ncp-latest-version
4 |
5 | TMPDIR="$( mktemp -d /tmp/ncp-check.XXXXXX || ( echo "Failed to create temp dir. Exiting" >&2; exit 1 ) )"
6 | trap "rm -rf \"${TMPDIR}\"; exit 0" 0 1 2 3 15
7 |
8 | git clone --depth 20 -q --bare https://github.com/DesktopECHO/nextcloudpi.git "$TMPDIR" || {
9 | echo "The git clone command failed: No connectivity to https://github.com ?" >&2
10 | exit 1
11 | }
12 |
13 | cd "$TMPDIR" || exit 1
14 | VER=$( git describe --always --tags | grep -oP "v\d+\.\d+\.\d+" )
15 | grep -qP "v\d+\.\d+\.\d+" <<< "$VER" && { # check format
16 | echo "$VER" > /var/run/.ncp-latest-version
17 |
18 | # write changelog
19 | git log --graph --oneline --decorate \
20 | --pretty=format:"[%D] %s" --date=short | \
21 | grep 'tag: v' | \
22 | sed '/HEAD ->\|origin/s|\[.*\(tag: v[0-9]\+\.[0-9]\+\.[0-9]\+\).*\]|[\1]|' | \
23 | sed 's|* \[tag: |[|' > /usr/local/etc/ncp-changelog
24 | }
25 | cd / || exit 1
26 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-datadir/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations":{
3 | "DATADIR":"Diretório de dados",
4 | "Change your data dir to a new location, like an external USB drive":"Mudar o diretorio dos seus dados para uma nova localização, por exemplo um dispos USB",
5 | "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\nAlso please note that the default location, when first installed is /var/www/nextcloud/data.\nMove it to the desired location by editing the DATADIR= field, the PATH shown is an example.":"Note que sistemas de arquivos não Unix, não são suportados, tal como o NTFS\nporquê eles não fornecem compatibilidade com o usuário/permissão no sistema.\n Também, por favor, verifique que a localização padrão é /var/www/nextcloud/data, quando se faz a primeira instalação.\nPara move-lo adicione a localização desejada no campo DATADIR=.Note que o PATH mostrado é um exemplo",
6 | "nc-datadir":"nc-diretórioDeDados"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/no-ip.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "no-ip",
3 | "name": "DynamicDNS from no-ip",
4 | "title": "no-ip",
5 | "description": "Dynamic DNS no-ip free provider",
6 | "info": "Need account from https://www.noip.com/",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "USER",
17 | "name": "User",
18 | "value": "my-noip-user@email.com",
19 | "suggest": "my-noip-user@email.com"
20 | },
21 | {
22 | "id": "PASS",
23 | "name": "Password",
24 | "value": "no-ip password",
25 | "type": "password"
26 | },
27 | {
28 | "id": "DOMAIN",
29 | "name": "Domain",
30 | "value": "mycloud.ownyourbits.com",
31 | "suggest": "mycloud.ownyourbits.com"
32 | },
33 | {
34 | "id": "TIME",
35 | "name": "Time",
36 | "value": "30",
37 | "default": "30",
38 | "suggest": "30"
39 | }
40 | ]
41 | }
42 |
--------------------------------------------------------------------------------
/ncp-web/img/green-circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
35 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/appinfo/app.php:
--------------------------------------------------------------------------------
1 |
4 | *
5 | * @author Roeland Jago Douma
6 | *
7 | * @license GNU AGPL version 3 or any later version
8 | *
9 | * This program is free software: you can redistribute it and/or modify
10 | * it under the terms of the GNU Affero General Public License as
11 | * published by the Free Software Foundation, either version 3 of the
12 | * License, or (at your option) any later version.
13 | *
14 | * This program is distributed in the hope that it will be useful,
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * GNU Affero General Public License for more details.
18 | *
19 | * You should have received a copy of the GNU Affero General Public License
20 | * along with this program. If not, see .
21 | *
22 | */
23 | $app = new \OCA\PreviewGenerator\AppInfo\Application();
24 |
--------------------------------------------------------------------------------
/bin/ncp-test-updates:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # given in disk version information, return 0 if an update is available
4 |
5 | NEED_UPDATE=false
6 | VERFILE=/var/run/.ncp-latest-version
7 |
8 | [[ $( cat $VERFILE 2>/dev/null | wc -c ) -eq 0 ]] && ncp-check-version
9 |
10 | if grep -qP "v\d+\.\d+\.\d+" $VERFILE; then
11 |
12 | MAJOR=$( grep -oP "\d+\.\d+\.\d+" $VERFILE | cut -d. -f1 )
13 | MINOR=$( grep -oP "\d+\.\d+\.\d+" $VERFILE | cut -d. -f2 )
14 | PATCH=$( grep -oP "\d+\.\d+\.\d+" $VERFILE | cut -d. -f3 )
15 |
16 | MAJ=$( grep -oP "\d+\.\d+\.\d+" /usr/local/etc/ncp-version | cut -d. -f1 )
17 | MIN=$( grep -oP "\d+\.\d+\.\d+" /usr/local/etc/ncp-version | cut -d. -f2 )
18 | PAT=$( grep -oP "\d+\.\d+\.\d+" /usr/local/etc/ncp-version | cut -d. -f3 )
19 |
20 | if [ "$MAJOR" -gt "$MAJ" ]; then
21 | NEED_UPDATE=true
22 | elif [ "$MAJOR" -eq "$MAJ" ] && [ "$MINOR" -gt "$MIN" ]; then
23 | NEED_UPDATE=true
24 | elif [ "$MAJOR" -eq "$MAJ" ] && [ "$MINOR" -eq "$MIN" ] && [ "$PATCH" -gt "$PAT" ]; then
25 | NEED_UPDATE=true
26 | fi
27 | fi
28 | [[ "$NEED_UPDATE" == "true" ]] && exit 0
29 |
--------------------------------------------------------------------------------
/ncp-app/appinfo/info.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | nextcloudpi
5 | NextCloudPi
6 | Nextcloud management tools
7 |
8 | 0.0.1
9 | agpl
10 | nachoparker
11 | NextCloudPi
12 | tools
13 | https://github.com/nextcloud/nextcloudpi/issues
14 |
15 |
16 |
17 |
18 |
19 | NextCloudPi
20 | nextcloudpi.page.index
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/samba.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "samba",
3 | "name": "Samba",
4 | "title": "samba",
5 | "description": "SMB/CIFS file server (for Mac/Linux/Windows)\nIf a group filter is given, samba shares will only be set up for users of that group.",
6 | "info": "The username will be the Nextcloud username, and the password will be one we setup here.\nIf we intend to modify the data folder through SAMBA,\nthen we have to synchronize NextCloud to make it aware of the changes.\n\nThis can be done manually or automatically using 'nc-scan' and 'nc-scan-auto'",
7 | "infotitle": "Instructions for external synchronization",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "PWD",
17 | "name": "Password",
18 | "value": "",
19 | "suggest": "password",
20 | "type": "password"
21 | },
22 | {
23 | "id": "FILTER_BY_GROUP",
24 | "name": "Filter by NC group",
25 | "value": "",
26 | "suggest": "optional NC group"
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/updates/1.45.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8 |
9 | # all images
10 |
11 | # this update brings a version bump for ncp-previewgenerator
12 | ncc upgrade
13 |
14 | # update ncc
15 | cat > /usr/local/bin/ncc <<'EOF'
16 | #!/bin/bash
17 | [[ ${EUID} -eq 0 ]] && SUDO="sudo -E -u www-data"
18 | ${SUDO} php /var/www/nextcloud/occ "$@"
19 | EOF
20 | chmod +x /usr/local/bin/ncc
21 |
22 | # docker images only
23 | [[ -f /.docker-image ]] && {
24 | :
25 | }
26 |
27 | # for non docker images
28 | [[ ! -f /.docker-image ]] && {
29 |
30 | # make sure redis is up before running nextclud-domain
31 | cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF'
32 | [Unit]
33 | Description=Register Current IP as Nextcloud trusted domain
34 | Requires=network.target
35 | After=mysql.service redis.service
36 |
37 | [Service]
38 | ExecStart=/bin/bash /usr/local/bin/nextcloud-domain.sh
39 | Restart=on-failure
40 | RestartSec=5s
41 |
42 | [Install]
43 | WantedBy=multi-user.target
44 | EOF
45 | }
46 |
47 | exit 0
48 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/letsencrypt.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "letsencrypt",
3 | "name": "Let's Encrypt, Automatic signed SSL certificates",
4 | "title": "letsencrypt",
5 | "description": "Automatic signed SSL certificates. Let’s Encrypt is a free, automated, and open Certificate Authority.",
6 | "info": "Internet access is required for this configuration to complete\nBoth ports 80 and 443 need to be accessible from the internet\n\nYour certificate will be automatically renewed every month",
7 | "infotitle": "Warning",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DOMAIN",
17 | "name": "Domain",
18 | "value": "",
19 | "suggest": "mycloud.ownyourbits.com"
20 | },
21 | {
22 | "id": "OTHER_DOMAIN",
23 | "name": "Additional domain",
24 | "value": "",
25 | "suggest": "optional.cloud.ownyourbits.com"
26 | },
27 | {
28 | "id": "EMAIL",
29 | "name": "Email",
30 | "value": "",
31 | "suggest": "mycloud@ownyourbits.com"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/bin/nextcloud-domain.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | source /usr/local/etc/library.sh
4 |
5 | # wait until user decrypts the instance first
6 | while :; do
7 | needs_decrypt || break
8 | sleep 1
9 | done
10 |
11 | # wicd service finishes before completing DHCP
12 | while :; do
13 | local_ip="$(get_ip)"
14 | pub_ip="$(curl -m4 icanhazip.com 2>/dev/null)"
15 |
16 | [[ "$pub_ip" != "" ]] && ncc config:system:set trusted_domains 11 --value="$pub_ip"
17 | [[ "$local_ip" != "" ]] && break
18 |
19 | sleep 3
20 | done
21 |
22 | ncc config:system:set trusted_domains 1 --value="${local_ip}"
23 | ncc config:system:set trusted_domains 14 --value="$(hostname -f)"
24 |
25 | # we might need to retry if redis is not ready
26 | while :; do
27 | nc_domain="$(ncc config:system:get overwrite.cli.url)" || {
28 | sleep 3
29 | continue
30 | }
31 | # Fix the situation where junk was introduced in the config by mistake
32 | # because Redis was not yet ready to be used even if it was up
33 | [[ "${nc_domain}" =~ "RedisException" ]] && nc_domain="$(hostname)"
34 | set-nc-domain "${nc_domain}" >> /var/log/ncp.log
35 | break
36 | done
37 |
--------------------------------------------------------------------------------
/ncp-app/lib/Controller/PageController.php:
--------------------------------------------------------------------------------
1 | userId = $UserId;
15 | }
16 |
17 | /**
18 | * CAUTION: the @Stuff turns off security checks; for this page no admin is
19 | * required and no CSRF check. If you don't know what CSRF is, read
20 | * it up in the docs or you might create a security hole. This is
21 | * basically the only required method to add this exemption, don't
22 | * add it to any other method if you don't exactly know what it does
23 | *
24 | * @NoAdminRequired
25 | * @NoCSRFRequired
26 | * @PublicPage
27 | * @CORS
28 | */
29 | public function index() {
30 | return new TemplateResponse('nextcloudpi', 'index'); // templates/index.php
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/SSH.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "SSH",
3 | "name": "SSH OpenSSH is a remote login program",
4 | "title": "SSH",
5 | "description": "Activate or deactivate SSH - OpenSSH is a remote login program",
6 | "info": "In order to enable SSH, the password for user 'pi' can NOT remain set to the default 'raspberry'. \nYou HAVE to create a NEW password for 'pi' if you want this program to enable SSH, it will fail if you dont!\nThe same will happen with user 'root' and password '1234'\nNote: Use normal AlphaNumeric, the only special characters allowed are .,@-_/",
7 | "infotitle": "SSH notes",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "USER",
17 | "name": "User",
18 | "value": "root",
19 | "suggest": "root"
20 | },
21 | {
22 | "id": "PASS",
23 | "name": "Pass",
24 | "value": "1234",
25 | "type": "password"
26 | },
27 | {
28 | "id": "CONFIRM",
29 | "name": "Confirm",
30 | "value": "1234",
31 | "type": "password"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/.github/actions/create-test-instance/action.yml:
--------------------------------------------------------------------------------
1 | name: Create Test VM
2 | description: Create NCP instance for testing in the Hetzner cloud
3 | inputs:
4 | version:
5 | description: version (git rev / tag / branch) to install
6 | required: true
7 | uid:
8 | description: A unique ID for labeling/naming generated resources
9 | required: true
10 | hcloud_token:
11 | description: A auth token for Hetzner cloud
12 | required: true
13 | server_type:
14 | description: Server type to use for hetzner servers
15 | required: true
16 | default: "cx11"
17 |
18 | outputs:
19 | server_address:
20 | description: Adress of the test instance
21 | snapshot_id:
22 | description: ID of the generated postinstall snapshot
23 | test_server_id:
24 | description: ID of the created test server
25 | runs:
26 | using: docker
27 | image: docker://thecalcaholic/ncp-test-automation
28 |
29 | env:
30 | HCLOUD_TOKEN: ${{ inputs.hcloud_token }}
31 | UID: ${{ inputs.uid }}
32 | SERVER_TYPE: ${{ inputs.server_type }}
33 | args:
34 | - /ncp-test-automation/bin/actions/create-test-instance.sh
35 | - ${{ inputs.version }}
--------------------------------------------------------------------------------
/bin/ncp/UPDATES/nc-update-nc-apps.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Update all installed Nextcloud Apps
4 | #
5 | # Copyleft 2019 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://ownyourbits.com
9 | #
10 |
11 |
12 | configure()
13 | {
14 | ncc app:update --all -n
15 | }
16 |
17 | install() { :; }
18 |
19 | # License
20 | #
21 | # This script is free software; you can redistribute it and/or modify it
22 | # under the terms of the GNU General Public License as published by
23 | # the Free Software Foundation; either version 2 of the License, or
24 | # (at your option) any later version.
25 | #
26 | # This script is distributed in the hope that it will be useful,
27 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 | # GNU General Public License for more details.
30 | #
31 | # You should have received a copy of the GNU General Public License
32 | # along with this script; if not, write to the
33 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
34 | # Boston, MA 02111-1307 USA
35 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-backup-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-backup-auto",
3 | "name": "Nc-backup-auto",
4 | "title": "nc-backup-auto",
5 | "description": "Set periodic backups",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DESTDIR",
17 | "name": "Destination Directory",
18 | "value": "/media/USBdrive/ncp-backups",
19 | "suggest": "/media/USBdrive/ncp-backups",
20 | "type": "directory"
21 | },
22 | {
23 | "id": "INCLUDEDATA",
24 | "name": "Include data",
25 | "value": "no",
26 | "type": "bool"
27 | },
28 | {
29 | "id": "COMPRESS",
30 | "name": "Compress",
31 | "value": "no",
32 | "type": "bool"
33 | },
34 | {
35 | "id": "BACKUPDAYS",
36 | "name": "Backup periodicity (in days)",
37 | "suggest": "7",
38 | "value": "7"
39 | },
40 | {
41 | "id": "BACKUPLIMIT",
42 | "name": "Number of backups to keep",
43 | "suggest": "4",
44 | "value": "4"
45 | }
46 | ]
47 | }
48 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 | php:
3 | - 7
4 | - 7.1
5 | - 7.2
6 |
7 | env:
8 | global:
9 | - CORE_BRANCH=master
10 | - APP_NAME=previewgenerator
11 | matrix:
12 | - DB=sqlite
13 |
14 | branches:
15 | only:
16 | - master
17 | - /^stable\d+(\.\d+)?$/
18 |
19 | before_install:
20 | - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
21 | - . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
22 |
23 | # Add some output debugging information
24 | - cd ../server
25 | - ./occ check
26 | - ./occ status
27 | - ./occ app:list
28 | - ./occ app:enable $APP_NAME
29 |
30 | script:
31 | - cd apps/$APP_NAME/
32 |
33 | # Test the app
34 | - sh -c "find . -name \*.php -exec php -l \"{}\" \;;"
35 | - cd ../../
36 | #- sh -c "./occ app:check-code $APP_NAME -c private -c strong-comparison;"
37 | #- sh -c "./occ app:check-code $APP_NAME -c deprecation;"
38 | - cd apps/$APP_NAME/
39 |
40 | # Run phpunit tests
41 | - cd tests/
42 | - sh -c "phpunit --configuration phpunit.xml"
43 |
44 | after_success:
45 | - bash <(curl -s https://codecov.io/bash)
46 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/Makefile:
--------------------------------------------------------------------------------
1 | # Makefile for building the project
2 |
3 | app_name=previewgenerator
4 | project_dir=$(CURDIR)/../$(app_name)
5 | build_dir=$(CURDIR)/build/artifacts
6 | sign_dir=$(build_dir)/sign
7 | appstore_dir=$(build_dir)/appstore
8 | source_dir=$(build_dir)/source
9 | package_name=$(app_name)
10 | cert_dir=$(HOME)/.nextcloud/certificates
11 |
12 | appstore:
13 | mkdir -p $(sign_dir)
14 | rsync -a \
15 | --exclude=.git \
16 | --exclude=build \
17 | --exclude=.gitignore \
18 | --exclude=.travis.yml \
19 | --exclude=.scrutinizer.yml \
20 | --exclude=CONTRIBUTING.md \
21 | --exclude=composer.json \
22 | --exclude=composer.lock \
23 | --exclude=composer.phar \
24 | --exclude=l10n/.tx \
25 | --exclude=l10n/no-php \
26 | --exclude=Makefile \
27 | --exclude=nbproject \
28 | --exclude=screenshots \
29 | --exclude=phpunit*xml \
30 | --exclude=tests \
31 | --exclude=vendor/bin \
32 | $(project_dir) $(sign_dir)
33 | @echo "Signing…"
34 | tar -czf $(build_dir)/$(app_name).tar.gz \
35 | -C $(sign_dir) $(app_name)
36 | openssl dgst -sha512 -sign $(cert_dir)/$(app_name).key $(build_dir)/$(app_name).tar.gz | openssl base64
37 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/fail2ban.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "fail2ban",
3 | "name": "Fail2ban, limit brute force authentication attempts",
4 | "title": "fail2ban",
5 | "description": "Brute force protection for SSH and NextCloud",
6 | "info": "",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "BANTIME",
17 | "name": "Bantime",
18 | "value": "600",
19 | "default": "600",
20 | "suggest": "600"
21 | },
22 | {
23 | "id": "FINDTIME",
24 | "name": "Findtime",
25 | "value": "600",
26 | "default": "600",
27 | "suggest": "600"
28 | },
29 | {
30 | "id": "MAXRETRY",
31 | "name": "Maxretry",
32 | "value": "6",
33 | "default": "6",
34 | "suggest": "6"
35 | },
36 | {
37 | "id": "MAILALERTS",
38 | "name": "Mailalerts",
39 | "value": "no",
40 | "type": "bool"
41 | },
42 | {
43 | "id": "EMAIL",
44 | "name": "Email",
45 | "value": "",
46 | "suggest": "optional@email.com"
47 | }
48 | ]
49 | }
50 |
--------------------------------------------------------------------------------
/bin/ncp/UPDATES/nc-update.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Data dir configuration script for NextCloudPi
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at https://ownyourbits.com/
9 | #
10 |
11 |
12 | configure()
13 | {
14 | /usr/local/bin/ncp-update
15 | }
16 |
17 | install() { :; }
18 |
19 | # License
20 | #
21 | # This script is free software; you can redistribute it and/or modify it
22 | # under the terms of the GNU General Public License as published by
23 | # the Free Software Foundation; either version 2 of the License, or
24 | # (at your option) any later version.
25 | #
26 | # This script is distributed in the hope that it will be useful,
27 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 | # GNU General Public License for more details.
30 | #
31 | # You should have received a copy of the GNU General Public License
32 | # along with this script; if not, write to the
33 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
34 | # Boston, MA 02111-1307 USA
35 |
36 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc20/tests/bootstrap.php:
--------------------------------------------------------------------------------
1 |
4 | *
5 | * @author Roeland Jago Douma
6 | *
7 | * @license GNU AGPL version 3 or any later version
8 | *
9 | * This program is free software: you can redistribute it and/or modify
10 | * it under the terms of the GNU Affero General Public License as
11 | * published by the Free Software Foundation, either version 3 of the
12 | * License, or (at your option) any later version.
13 | *
14 | * This program is distributed in the hope that it will be useful,
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * GNU Affero General Public License for more details.
18 | *
19 | * You should have received a copy of the GNU Affero General Public License
20 | * along with this program. If not, see .
21 | *
22 | */
23 |
24 | define('PHPUNIT_RUN', 1);
25 |
26 | require_once __DIR__.'/../../../lib/base.php';
27 |
28 | \OC_App::loadApp('previewgenerator');
29 |
30 | OC_Hook::clear();
31 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/tests/bootstrap.php:
--------------------------------------------------------------------------------
1 |
4 | *
5 | * @author Roeland Jago Douma
6 | *
7 | * @license GNU AGPL version 3 or any later version
8 | *
9 | * This program is free software: you can redistribute it and/or modify
10 | * it under the terms of the GNU Affero General Public License as
11 | * published by the Free Software Foundation, either version 3 of the
12 | * License, or (at your option) any later version.
13 | *
14 | * This program is distributed in the hope that it will be useful,
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | * GNU Affero General Public License for more details.
18 | *
19 | * You should have received a copy of the GNU Affero General Public License
20 | * along with this program. If not, see .
21 | *
22 | */
23 |
24 | define('PHPUNIT_RUN', 1);
25 |
26 | require_once __DIR__.'/../../../lib/base.php';
27 |
28 | \OC_App::loadApp('previewgenerator');
29 |
30 | OC_Hook::clear();
31 |
--------------------------------------------------------------------------------
/updates/1.18.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8 |
9 | # all images
10 |
11 | # restore sources in stretch
12 | sed -i "s/buster/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true
13 |
14 | # restore smbclient after dist upgrade
15 | apt_install php${PHPVER}-gmp
16 |
17 | # Update modsecurity config file only if user is already in buster and
18 | # modsecurity is used.
19 | # https://github.com/nextcloud/nextcloudpi/issues/959
20 | is_active_app modsecurity && run_app modsecurity
21 |
22 | # fix armbian disabling unattended-upgrades
23 | is_active_app unattended-upgrades && run_app unattended-upgrades
24 |
25 | # groupfolders fix
26 | install_app nc-backup
27 |
28 | # docker images only
29 | [[ -f /.docker-image ]] && {
30 | :
31 | }
32 |
33 | # for non docker images
34 | [[ ! -f /.docker-image ]] && {
35 | # fix fail2ban with UFW
36 | mkdir -p /etc/systemd/system/fail2ban.service.d/
37 | cat > /etc/systemd/system/fail2ban.service.d/touch-ufw-log.conf < $baseDir . '/../lib/AppInfo/Application.php',
10 | 'OCA\\PreviewGenerator\\Command\\DeleteOld' => $baseDir . '/../lib/Command/DeleteOld.php',
11 | 'OCA\\PreviewGenerator\\Command\\Generate' => $baseDir . '/../lib/Command/Generate.php',
12 | 'OCA\\PreviewGenerator\\Command\\PreGenerate' => $baseDir . '/../lib/Command/PreGenerate.php',
13 | 'OCA\\PreviewGenerator\\Command\\TimestampFormatter' => $baseDir . '/../lib/Command/TimestampFormatter.php',
14 | 'OCA\\PreviewGenerator\\Migration\\Version020000Date20180823071939' => $baseDir . '/../lib/Migration/Version020000Date20180823071939.php',
15 | 'OCA\\PreviewGenerator\\Migration\\Version020200Date20190608205303' => $baseDir . '/../lib/Migration/Version020200Date20190608205303.php',
16 | 'OCA\\PreviewGenerator\\SizeHelper' => $baseDir . '/../lib/SizeHelper.php',
17 | 'OCA\\PreviewGenerator\\Watcher' => $baseDir . '/../lib/Watcher.php',
18 | );
19 |
--------------------------------------------------------------------------------
/updates/1.46.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | # docker images only
6 | [[ -f /.docker-image ]] && {
7 | cat < /etc/cron.daily/refresh_notify_push
8 | #!/usr/bin/env bash
9 | . /usr/local/etc/library.sh
10 | ncc notify_push:self-test || {
11 | killall notify_push
12 | sleep 1
13 | start_notify_push
14 | }
15 | EOF
16 | chmod +x /etc/cron.daily/refresh_notify_push
17 | }
18 |
19 | # for non docker images
20 | [[ ! -f /.docker-image ]] && {
21 | cat > /etc/systemd/system/refresh_notify_push.service < /etc/systemd/system/refresh_notify_push.path < "${crontab_tmp}"
17 | crontab -u www-data "${crontab_tmp}"
18 | rm "${crontab_tmp}"
19 |
20 | ## update nc-restore
21 | install_app nc-restore
22 |
23 | ## make sure old images clear the ncp-image flag
24 | rm -f /.ncp-image
25 |
26 | # docker images only
27 | [[ -f /.docker-image ]] && {
28 | # fix build bug on v1.32.0
29 | grep -q 'data-ro' /data/nextcloud/config/config.php && cp -raTn /data-ro/nextcloud /data/nextcloud
30 | sed -i 's|data-ro|data|' /data/nextcloud/config/config.php
31 | :
32 | }
33 |
34 | # for non docker images
35 | [[ ! -f /.docker-image ]] && {
36 | :
37 | }
38 |
39 | ## enable TLSv1.3
40 | sed -i 's|SSLProtocol -all.*|SSLProtocol -all +TLSv1.2 +TLSv1.3|' /etc/apache2/conf-available/http2.conf
41 | bash -c "sleep 2 && service apache2 reload" &>/dev/null &
42 |
43 | exit 0
44 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/NFS.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "NFS",
3 | "name": "NFS Linux Network File System",
4 | "title": "NFS",
5 | "description": "NFS network file system server (for Linux LAN)",
6 | "info": "If we intend to modify the data folder through NFS,\nthen we have to synchronize NextCloud to make it aware of the changes.\n\nThis can be done manually or automatically using 'nc-scan' and 'nc-scan-auto'",
7 | "infotitle": "Instructions for external synchronization",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "DIR",
17 | "name": "Dir",
18 | "value": "/media/USBdrive/ncdata/admin/files",
19 | "suggest": "/media/USBdrive/ncdata/admin/files",
20 | "type": "directory"
21 | },
22 | {
23 | "id": "SUBNET",
24 | "name": "Subnet",
25 | "value": "192.168.1.0/24",
26 | "suggest": "192.168.1.0/24"
27 | },
28 | {
29 | "id": "USER",
30 | "name": "User",
31 | "value": "www-data",
32 | "suggest": "www-data"
33 | },
34 | {
35 | "id": "GROUP",
36 | "name": "Group",
37 | "value": "www-data",
38 | "suggest": "www-data"
39 | }
40 | ]
41 | }
42 |
--------------------------------------------------------------------------------
/bin/ncp-suggestions:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #
4 | # NextCloudPi configuration suggestions
5 | #
6 | # Copyleft 2018 by Ignacio Nunez Hernanz
7 | # GPL licensed (see end of file) * Use at your own risk!
8 | #
9 | # Usage:
10 | # sudo ncp-suggestions "$( ncp-diag )"
11 | #
12 | # More at https://ownyourbits.com
13 | #
14 |
15 | OUT="$@"
16 |
17 | source /usr/local/etc/library.sh
18 |
19 | check_distro || \
20 | echo -e "You are using an outdated distro release. You should upgrade to latest Debian/Raspbian"
21 |
22 | is_active_app dnsmasq && \
23 | grep -q "NAT loopback|no" <<<"$OUT" && \
24 | echo -e "\nYou should enable dnsmasq to use your domain inside home"
25 |
26 | grep -q "certificates|none" <<<"$OUT" && \
27 | echo -e "\nYou should run Lets Encrypt for trusted encrypted access"
28 |
29 | grep -q "port check .*|closed" <<<"$OUT" && \
30 | echo -e "\nYou should open your ports for Lets Encrypt and external access"
31 |
32 | grep -q "USB devices|none" <<<"$OUT" || {
33 | grep -q "data in SD|yes" <<<"$OUT" && \
34 | echo -e "\nYou should use nc-datadir to move your files to your plugged in USB drive"
35 |
36 | grep -q "automount|no" <<<"$OUT" && \
37 | echo -e "\nYou should enable automount to use your plugged in USB drive"
38 | }
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/1_Bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 🐛 Bug Report
3 | about: Report errors and problems
4 |
5 | ---
6 |
7 |
28 |
29 | **System information**
30 |
31 |
32 |
--------------------------------------------------------------------------------
/bin/ncp/UPDATES/nc-update-nextcloud.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Update current instance to a new Nextcloud version
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
9 | #
10 |
11 | LATEST="$NCLATESTVER"
12 |
13 | configure()
14 | {
15 | [[ "$VERSION" == "0" ]] && VERSION="$LATEST"
16 | bash /usr/local/bin/ncp-update-nc "$VERSION"
17 | }
18 |
19 | install() { :; }
20 |
21 | # License
22 | #
23 | # This script is free software; you can redistribute it and/or modify it
24 | # under the terms of the GNU General Public License as published by
25 | # the Free Software Foundation; either version 2 of the License, or
26 | # (at your option) any later version.
27 | #
28 | # This script is distributed in the hope that it will be useful,
29 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 | # GNU General Public License for more details.
32 | #
33 | # You should have received a copy of the GNU General Public License
34 | # along with this script; if not, write to the
35 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
36 | # Boston, MA 02111-1307 USA
37 |
38 |
--------------------------------------------------------------------------------
/bin/ncp/TOOLS/nc-maintenance.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Turn maintenance mode on or off
4 | #
5 | # Copyleft 2019 by Yi Chi 齊一
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://www.cotpear.com
9 | # Made in Taiwan (Republic of China)
10 | #
11 |
12 | is_active()
13 | {
14 | grep -q enabled <(ncc maintenance:mode)
15 | }
16 |
17 | configure()
18 | {
19 | [[ "$ACTIVE" != "yes" ]] && {
20 | ncc maintenance:mode --off
21 | return $?
22 | }
23 | ncc maintenance:mode --on
24 | }
25 |
26 | install(){ :; }
27 |
28 | # License
29 | #
30 | # This script is free software; you can redistribute it and/or modify it
31 | # under the terms of the GNU General Public License as published by
32 | # the Free Software Foundation; either version 2 of the License, or
33 | # (at your option) any later version.
34 | #
35 | # This script is distributed in the hope that it will be useful,
36 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
37 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 | # GNU General Public License for more details.
39 | #
40 | # You should have received a copy of the GNU General Public License
41 | # along with this script; if not, write to the
42 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
43 | # Boston, MA 02111-1307 USA
44 |
--------------------------------------------------------------------------------
/updates/1.16.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh
8 |
9 | # all images
10 |
11 | # restore smbclient after dist upgrade
12 | apt_install php-smbclient exfat-fuse exfat-utils
13 |
14 | # install lsb-release
15 | apt_install lsb-release
16 |
17 | # tweak previews
18 | ncc config:app:set preview jpeg_quality --value="60"
19 |
20 | # missed some sources
21 | sed -i "s/stretch/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true
22 |
23 | # docker images only
24 | [[ -f /.docker-image ]] && {
25 | :
26 | }
27 |
28 | # for non docker images
29 | [[ ! -f /.docker-image ]] && {
30 | # Update btrfs-sync
31 | wget -q https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync
32 | chmod +x /usr/local/bin/btrfs-sync
33 |
34 | # work around dhcpcd Raspbian bug
35 | # https://lb.raspberrypi.org/forums/viewtopic.php?t=230779
36 | # https://github.com/nextcloud/nextcloudpi/issues/938
37 | test -f /usr/bin/raspi-config && {
38 | apt-get update
39 | apt_install haveged
40 | systemctl enable haveged.service
41 | }
42 |
43 | # Update btrfs-snp
44 | wget https://raw.githubusercontent.com/nachoparker/btrfs-snp/master/btrfs-snp -O /usr/local/bin/btrfs-snp
45 | chmod +x /usr/local/bin/btrfs-snp
46 | }
47 |
48 | exit 0
49 |
--------------------------------------------------------------------------------
/bin/ncp/BACKUPS/nc-export-ncp.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Export NextCloudPi configuration
4 | #
5 | #
6 | # Copyleft 2017 by Courtney Hicks
7 | # GPL licensed (see end of file) * Use at your own risk!
8 | #
9 |
10 |
11 |
12 | configure()
13 | {
14 | [[ -d "$DIR" ]] || { echo "directory $DIR does not exist"; return 1; }
15 |
16 | local destfile
17 | destfile="$DIR"/ncp-config_$(date +"%Y%m%d").tar
18 |
19 | tar -cf "$destfile" -C /usr/local/etc/ncp-config.d .
20 | chmod 600 "$destfile"
21 |
22 | echo -e "configuration exported to $destfile"
23 | }
24 |
25 | install() { :; }
26 |
27 | # License
28 | #
29 | # This script is free software; you can redistribute it and/or modify it
30 | # under the terms of the GNU General Public License as published by
31 | # the Free Software Foundation; either version 2 of the License, or
32 | # (at your option) any later version.
33 | #
34 | # This script is distributed in the hope that it will be useful,
35 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
36 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 | # GNU General Public License for more details.
38 | #
39 | # You should have received a copy of the GNU General Public License
40 | # along with this script; if not, write to the
41 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
42 | # Boston, MA 02111-1307 USA
43 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-snapshot-sync.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-snapshot-sync",
3 | "name": "Nc-snapshot-sync",
4 | "title": "nc-snapshot-sync",
5 | "description": "Sync BTRFS snapshots to USBdrive or remote machine",
6 | "info": "Use format user@ip:/path/to/snapshots for remote sync\n'user' needs permissions for the 'btrfs' command at 'ip'\n'user' needs SSH autologin from the NCP 'root' user at 'ip'\nOnly use compression for internet transfer, because it uses many resources",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "SNAPDIR",
17 | "name": "Snapshot directory",
18 | "value": "/media/USBdrive/ncp-snapshots",
19 | "suggest": "/media/USBdrive/ncp-snapshots",
20 | "type": "directory"
21 | },
22 | {
23 | "id": "DESTINATION",
24 | "name": "Destination",
25 | "value": "/media/myBackupDrive/ncp-snapshots",
26 | "suggest": "/media/myBackupDrive/ncp-snapshots"
27 | },
28 | {
29 | "id": "COMPRESSION",
30 | "name": "Compression",
31 | "value": "no",
32 | "type": "bool"
33 | },
34 | {
35 | "id": "SYNCDAYS",
36 | "name": "Sync periodicity (in days)",
37 | "value": "1",
38 | "suggest": "1"
39 | }
40 | ]
41 | }
42 |
--------------------------------------------------------------------------------
/ncp-previewgenerator/ncp-previewgenerator-nc21/.github/workflows/lint.yml:
--------------------------------------------------------------------------------
1 | name: Lint
2 |
3 | on:
4 | pull_request:
5 | push:
6 | branches:
7 | - master
8 | - stable*
9 |
10 | jobs:
11 | php:
12 | runs-on: ubuntu-latest
13 |
14 | strategy:
15 | matrix:
16 | php-versions: ['7.3', '7.4', '8.0']
17 |
18 | name: php${{ matrix.php-versions }}
19 | steps:
20 | - uses: actions/checkout@v2
21 |
22 | - name: Set up php ${{ matrix.php-versions }}
23 | uses: shivammathur/setup-php@v1
24 | with:
25 | php-version: ${{ matrix.php-versions }}
26 | coverage: none
27 |
28 | - name: Lint
29 | run: composer run lint
30 |
31 | php-cs-fixer:
32 | runs-on: ubuntu-latest
33 |
34 | strategy:
35 | matrix:
36 | php-versions: ['7.4']
37 |
38 | name: cs php${{ matrix.php-versions }}
39 | steps:
40 | - name: Checkout
41 | uses: actions/checkout@master
42 |
43 | - name: Set up php
44 | uses: shivammathur/setup-php@master
45 | with:
46 | php-version: ${{ matrix.php-versions }}
47 | coverage: none
48 |
49 | - name: Install dependencies
50 | run: composer i
51 |
52 | - name: Run coding standards check
53 | run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
54 |
55 |
--------------------------------------------------------------------------------
/ncp-web/img/logs.svg:
--------------------------------------------------------------------------------
1 |
2 |
39 |
--------------------------------------------------------------------------------
/bin/ncp/NETWORKING/nc-trusted-proxies.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Manually add trusted proxies in NextCloudPi
4 | #
5 | # Copyleft 2019 by Pascal Haefliger <45995338+paschaef_a_t_users_d_o_t_noreply_d_o_tgithub_d_o_t_com>
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | #
9 |
10 | configure()
11 | {
12 | [[ "$PROXY1" != "" ]] && ncc config:system:set trusted_proxies 0 --value="$PROXY1"
13 | [[ "$PROXY2" != "" ]] && ncc config:system:set trusted_proxies 1 --value="$PROXY2"
14 | [[ "$PROXY3" != "" ]] && ncc config:system:set trusted_proxies 2 --value="$PROXY3"
15 |
16 | exit 0
17 | }
18 |
19 | install(){ :; }
20 |
21 | # License
22 | #
23 | # This script is free software; you can redistribute it and/or modify it
24 | # under the terms of the GNU General Public License as published by
25 | # the Free Software Foundation; either version 2 of the License, or
26 | # (at your option) any later version.
27 | #
28 | # This script is distributed in the hope that it will be useful,
29 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 | # GNU General Public License for more details.
32 | #
33 | # You should have received a copy of the GNU General Public License
34 | # along with this script; if not, write to the
35 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
36 | # Boston, MA 02111-1307 USA
37 |
38 |
--------------------------------------------------------------------------------
/tag_and_push.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Tag current commit, generate changelog and push to current branch
4 | #
5 | # Copyleft 2018 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # Usage:
9 | #
10 | # To install to an image using QEMU
11 | #
12 | # ./tag_and_push.sh
13 | #
14 | # More at: https://ownyourbits.com
15 | #
16 |
17 | set -e
18 |
19 | TAG="$*"
20 |
21 | source build/buildlib.sh
22 | git tag -f "$TAG"
23 | generate_changelog
24 | git add changelog.md
25 | git commit -C HEAD --amend
26 | git tag -f "$TAG"
27 | git push origin HEAD --tags
28 |
29 | # License
30 | #
31 | # This script is free software; you can redistribute it and/or modify it
32 | # under the terms of the GNU General Public License as published by
33 | # the Free Software Foundation; either version 2 of the License, or
34 | # (at your option) any later version.
35 | #
36 | # This script is distributed in the hope that it will be useful,
37 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
38 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 | # GNU General Public License for more details.
40 | #
41 | # You should have received a copy of the GNU General Public License
42 | # along with this script; if not, write to the
43 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
44 | # Boston, MA 02111-1307 USA
45 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/l10n/nc-database/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "translations": {
3 | "DBDIR": "Diretório de banco de Dados",
4 | "This utility allows you to move your database to a new location, like an external USB drive.": "Esta funcionalidade permite você mover o seu banco de dados para uma nova localização, como um dispositivo USB externo",
5 | "Note that non Unix filesystems such as NTFS are not supported\nbecause they do not provide a compatible user/permissions system.\n\nYou need to use a USB drive that is permanently on and is responsive \nor the database will fail.\n\nPlease note that the default location, when first installed is /var/lib/mysql/. \nMove it to the desired location by editing the DBDIR= field, the one shown is an example.\n\n** If it ever fails with a white page, move the database back to the SD **": "Perceba que os sistemas de arquivos que não são baseados em unix como NSF não são suportados\nporquê eles não providenciam sistema de compatibilidade com usuários/permissões.\n\nVocê precisa usar um PenDrive que é permanente ligado e que seja responsivo\nou o banco de dados irá falhar\n\nPor Favor note que a localização padrão, quando feita a instalção padrão é /var/lib/mysql/.\nMova ele para a localização desejada, editando o campo DBDIR, aquele mostrado no exemplo.\n\n** Se falhar com uma página em branco, mova o banco de dados de volta para o SD **",
6 | "nc-database": "bancoDeDados-nc"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/bin/ncp/CONFIG/nc-trusted-domains.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Manually add trusted domains in NextCloudPi
4 | #
5 | # Copyleft 2019 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at https://ownyourbits.com/
9 | #
10 |
11 | configure()
12 | {
13 | [[ "$DOMAIN1" != "" ]] && ncc config:system:set trusted_domains 20 --value="$DOMAIN1"
14 | [[ "$DOMAIN2" != "" ]] && ncc config:system:set trusted_domains 21 --value="$DOMAIN2"
15 | [[ "$DOMAIN3" != "" ]] && ncc config:system:set trusted_domains 22 --value="$DOMAIN3"
16 | return 0
17 | }
18 |
19 | install(){ :; }
20 |
21 | # License
22 | #
23 | # This script is free software; you can redistribute it and/or modify it
24 | # under the terms of the GNU General Public License as published by
25 | # the Free Software Foundation; either version 2 of the License, or
26 | # (at your option) any later version.
27 | #
28 | # This script is distributed in the hope that it will be useful,
29 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
30 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 | # GNU General Public License for more details.
32 | #
33 | # You should have received a copy of the GNU General Public License
34 | # along with this script; if not, write to the
35 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
36 | # Boston, MA 02111-1307 USA
37 |
38 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/namecheapDNS.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "namecheapDNS",
3 | "name": "Dynamic DNS from Namecheap",
4 | "title": "namecheapDNS",
5 | "description": "Namecheap Dynamic DNS service (need domain from https://www.namecheap.com/)",
6 | "info": "First, complete these steps: https://www.namecheap.com/support/knowledgebase/article.aspx/595/11/how-do-i-enable-dynamic-dns-for-a-domain/ and https://www.namecheap.com/support/knowledgebase/article.aspx/43/11/how-do-i-set-up-a-host-for-dynamic-dns",
7 | "infotitle": "",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "PASSWORD",
17 | "name": "Password",
18 | "value": "",
19 | "suggest": "your_ddns_password",
20 | "type": "password"
21 | },
22 | {
23 | "id": "FULLDOMAIN",
24 | "name": "Full domain name",
25 | "value": "",
26 | "suggest": "mynextcloud.example.com"
27 | },
28 | {
29 | "id": "HOST",
30 | "name": "Host name",
31 | "value": "",
32 | "suggest": "mynextcloud"
33 | },
34 | {
35 | "id": "DOMAIN",
36 | "name": "Domain name",
37 | "value": "",
38 | "suggest": "example.com"
39 | },
40 | {
41 | "id": "UPDATEINTERVAL",
42 | "name": "Update interval (minutes)",
43 | "value": "30",
44 | "suggest": "30"
45 | }
46 | ]
47 | }
48 |
--------------------------------------------------------------------------------
/bin/ncp/SYSTEM/nc-info.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Print NCP sytem info
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://ownyourbits.com
9 | #
10 |
11 |
12 | install()
13 | {
14 | apt-get update
15 | apt-get install -y --no-install-recommends bsdmainutils
16 | }
17 |
18 | configure()
19 | {
20 | echo "Gathering information..."
21 | local OUT="$( bash /usr/local/bin/ncp-diag )"
22 |
23 | # info
24 | echo "$OUT" | column -t -s'|'
25 |
26 | # suggestions
27 | echo
28 | bash /usr/local/bin/ncp-suggestions "$OUT"
29 |
30 | return 0
31 | }
32 |
33 | # License
34 | #
35 | # This script is free software; you can redistribute it and/or modify it
36 | # under the terms of the GNU General Public License as published by
37 | # the Free Software Foundation; either version 2 of the License, or
38 | # (at your option) any later version.
39 | #
40 | # This script is distributed in the hope that it will be useful,
41 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
42 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 | # GNU General Public License for more details.
44 | #
45 | # You should have received a copy of the GNU General Public License
46 | # along with this script; if not, write to the
47 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
48 | # Boston, MA 02111-1307 USA
49 |
--------------------------------------------------------------------------------
/etc/ncp-config.d/nc-scan-auto.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "id": "nc-scan-auto",
3 | "name": "Nc-scan-auto",
4 | "title": "nc-scan-auto",
5 | "description": "Periodically scan NC for externally modified files",
6 | "info": "Set the time in minutes in Scan Interval. Optionally we can specify up to 3 paths in the form '_user_/files/_path_'\n\n>>> If there are too many files this can greatly affect performance. <<<",
7 | "infotitle": "Instructions for auto synchronization",
8 | "params": [
9 | {
10 | "id": "ACTIVE",
11 | "name": "Active",
12 | "value": "no",
13 | "type": "bool"
14 | },
15 | {
16 | "id": "RECURSIVE",
17 | "name": "Recursive",
18 | "value": "yes",
19 | "type": "bool"
20 | },
21 | {
22 | "id": "NONEXTERNAL",
23 | "name": "Ignore external files",
24 | "value": "no",
25 | "type": "bool"
26 | },
27 | {
28 | "id": "SCANINTERVAL",
29 | "name": "Scan periodicity (in minutes)",
30 | "value": "60",
31 | "suggest": "60"
32 | },
33 | {
34 | "id": "PATH1",
35 | "name": "Path",
36 | "value": "",
37 | "suggest": "/ncp/files/Documents"
38 | },
39 | {
40 | "id": "PATH2",
41 | "name": "Path",
42 | "value": "",
43 | "suggest": "/family/files/Photos"
44 | },
45 | {
46 | "id": "PATH3",
47 | "name": "Path",
48 | "value": "",
49 | "suggest": "/family/files/Videos"
50 | }
51 | ]
52 | }
53 |
--------------------------------------------------------------------------------
/bin/ncp/CONFIG/nc-httpsonly.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # HTTPS rewrite configuration script for NextCloudPi
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at https://ownyourbits.com/2017/03/13/nextcloudpi-gets-nextcloudpi-config/
9 | #
10 |
11 |
12 | configure()
13 | {
14 | [[ -f /.ncp-image ]] && return 0
15 | if [[ $ACTIVE == "no" ]]; then
16 | local opt=Off
17 | else
18 | local opt=On
19 | fi
20 | sed -i "s|RewriteEngine .*|RewriteEngine $opt|" /etc/apache2/sites-available/000-default.conf
21 | apachectl -k graceful
22 | echo "Forcing HTTPS $opt"
23 | }
24 |
25 | install() { :; }
26 |
27 | # License
28 | #
29 | # This script is free software; you can redistribute it and/or modify it
30 | # under the terms of the GNU General Public License as published by
31 | # the Free Software Foundation; either version 2 of the License, or
32 | # (at your option) any later version.
33 | #
34 | # This script is distributed in the hope that it will be useful,
35 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
36 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 | # GNU General Public License for more details.
38 | #
39 | # You should have received a copy of the GNU General Public License
40 | # along with this script; if not, write to the
41 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
42 | # Boston, MA 02111-1307 USA
43 |
44 |
--------------------------------------------------------------------------------
/bin/ncp/CONFIG/nc-admin.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Change password for the Nextcloud admin user
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://ownyourbits.com
9 | #
10 |
11 |
12 |
13 | configure()
14 | {
15 | [[ "$PASSWORD" == "" ]] && { echo "empty password"; return 1; }
16 | [[ "$USER" == "" ]] && { echo "empty user" ; return 1; }
17 | [[ "$PASSWORD" == "$CONFIRM" ]] || { echo "passwords do not match"; return 1; }
18 |
19 | OC_PASS="$PASSWORD" \
20 | sudo -E -u www-data php /var/www/nextcloud/occ \
21 | user:resetpassword --password-from-env "$USER"
22 | }
23 |
24 | install() { :; }
25 |
26 | # License
27 | #
28 | # This script is free software; you can redistribute it and/or modify it
29 | # under the terms of the GNU General Public License as published by
30 | # the Free Software Foundation; either version 2 of the License, or
31 | # (at your option) any later version.
32 | #
33 | # This script is distributed in the hope that it will be useful,
34 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
35 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 | # GNU General Public License for more details.
37 | #
38 | # You should have received a copy of the GNU General Public License
39 | # along with this script; if not, write to the
40 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
41 | # Boston, MA 02111-1307 USA
42 |
--------------------------------------------------------------------------------
/tests/libvirt_forwarding.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # copy to /etc/libvirt/hooks/qemu and restart libvirtd
4 |
5 | function manage_ports()
6 | {
7 | local GUEST_IP=$1
8 | local GUEST_PORT=$2
9 | local HOST_PORT=$3
10 | local OP=$4
11 |
12 | if [ "${OP}" = "stopped" ] || [ "${OP}" = "reconnect" ]; then
13 | /sbin/iptables -D FORWARD -o virbr1 -p tcp -d $GUEST_IP --dport $GUEST_PORT -j ACCEPT
14 | /sbin/iptables -t nat -D PREROUTING -p tcp --dport $HOST_PORT -j DNAT --to $GUEST_IP:$GUEST_PORT
15 | fi
16 | if [ "${OP}" = "start" ] || [ "${OP}" = "reconnect" ]; then
17 | /sbin/iptables -I FORWARD -o virbr1 -p tcp -d $GUEST_IP --dport $GUEST_PORT -j ACCEPT
18 | /sbin/iptables -t nat -I PREROUTING -p tcp --dport $HOST_PORT -j DNAT --to $GUEST_IP:$GUEST_PORT
19 | fi
20 | }
21 |
22 | VM_NAME="${1}"
23 | OP="${2}"
24 | GUEST_IP=192.168.121.243
25 |
26 | # IMPORTANT: Change the "VM NAME" string to match your actual VM Name.
27 | # In order to create rules to other VMs, just duplicate the below block and configure
28 | # it accordingly.
29 | [ "${VM_NAME}" = "nextcloudpi_default" ] || exit 0
30 |
31 | manage_ports "${GUEST_IP}" 80 80 "${OP}"
32 | manage_ports "${GUEST_IP}" 443 443 "${OP}"
33 | manage_ports "${GUEST_IP}" 4443 4443 "${OP}"
34 |
35 | # these are for SMB
36 | manage_ports "${GUEST_IP}" 137 137 "${OP}"
37 | manage_ports "${GUEST_IP}" 138 138 "${OP}"
38 | manage_ports "${GUEST_IP}" 139 139 "${OP}"
39 | manage_ports "${GUEST_IP}" 445 445 "${OP}"
40 | manage_ports "${GUEST_IP}" 900 900 "${OP}"
41 |
--------------------------------------------------------------------------------
/bin/ncp/TOOLS/nc-fix-permissions.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Fix permissions of the data files, in case they were copied externally
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://ownyourbits.com
9 | #
10 |
11 |
12 | configure()
13 | {
14 | local DATADIR
15 | DATADIR=$( cd /var/www/nextcloud; sudo -u www-data php occ config:system:get datadirectory ) || {
16 | echo "data directory not found";
17 | return 1;
18 | }
19 | echo -ne "fixing permissions in $DATADIR... "
20 | chown -R www-data:www-data "$DATADIR"/*/files
21 | chmod -R u+rw "$DATADIR"/*/files
22 | echo "done"
23 | }
24 |
25 | install() { :; }
26 |
27 | # License
28 | #
29 | # This script is free software; you can redistribute it and/or modify it
30 | # under the terms of the GNU General Public License as published by
31 | # the Free Software Foundation; either version 2 of the License, or
32 | # (at your option) any later version.
33 | #
34 | # This script is distributed in the hope that it will be useful,
35 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
36 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 | # GNU General Public License for more details.
38 | #
39 | # You should have received a copy of the GNU General Public License
40 | # along with this script; if not, write to the
41 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
42 | # Boston, MA 02111-1307 USA
43 |
--------------------------------------------------------------------------------
/bin/ncp/CONFIG/nc-webui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Periodically synchronize NextCloud for externally modified files
4 | #
5 | # Copyleft 2017 by Ignacio Nunez Hernanz
6 | # GPL licensed (see end of file) * Use at your own risk!
7 | #
8 | # More at: https://ownyourbits.com
9 | #
10 |
11 |
12 | is_active()
13 | {
14 | a2query -s ncp &>/dev/null
15 | }
16 |
17 | configure()
18 | {
19 | if [[ $ACTIVE != "yes" ]]; then
20 | a2dissite ncp
21 | echo "ncp-web disabled"
22 | else
23 | a2ensite ncp
24 | echo "ncp-web enabled"
25 | fi
26 |
27 | # delayed in bg so it does not kill the connection, and we get AJAX response
28 | bash -c "sleep 2 && service apache2 reload" &>/dev/null &
29 | }
30 |
31 | install() { :; }
32 |
33 | # License
34 | #
35 | # This script is free software; you can redistribute it and/or modify it
36 | # under the terms of the GNU General Public License as published by
37 | # the Free Software Foundation; either version 2 of the License, or
38 | # (at your option) any later version.
39 | #
40 | # This script is distributed in the hope that it will be useful,
41 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
42 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 | # GNU General Public License for more details.
44 | #
45 | # You should have received a copy of the GNU General Public License
46 | # along with this script; if not, write to the
47 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
48 | # Boston, MA 02111-1307 USA
49 |
50 |
--------------------------------------------------------------------------------
/updates/1.20.0.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ## BACKWARD FIXES ( for older images )
6 |
7 | source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8 |
9 | # all images
10 |
11 | # replace preview generator for the NCP version
12 | [[ -d /var/www/nextcloud/apps/previewgenerator ]] && {
13 | grep -q NCP /var/www/nextcloud/apps/previewgenerator &>/dev/null || {
14 | cp -raT /var/www/nextcloud/apps/{previewgenerator,previewgenerator.orig}
15 | cp -r /var/www/ncp-previewgenerator /var/www/nextcloud/apps/previewgenerator
16 | chown -R www-data: /var/www/nextcloud/apps/previewgenerator
17 | is_active_app nc-previews-auto && run_app nc-previews-auto
18 | }
19 | }
20 |
21 | # reduce nc-scan-auto verbosity
22 | is_active_app nc-scan-auto && run_app nc-scan-auto
23 |
24 | # if using NCP original logo, replace with the new version
25 | datadir=$(ncc config:system:get datadirectory)
26 | id=$(grep instanceid /var/www/nextcloud/config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g")
27 | logo_dir="${datadir}/appdata_${id}/theming/images"
28 | [[ -f "${logo_dir}"/logo ]] && {
29 | sum_orig=ca39ff587bd899cb92eb0f5a6d429824
30 | sum_curr=$(md5sum "${logo_dir}"/logo | awk '{ print $1 }')
31 | [[ "${sum_orig}" == "${sum_curr}" ]] && {
32 | cp etc/logo "${logo_dir}"/logo
33 | cp etc/logo "${logo_dir}"/logoheader
34 | }
35 | }
36 |
37 | # docker images only
38 | [[ -f /.docker-image ]] && {
39 | :
40 | }
41 |
42 | # for non docker images
43 | [[ ! -f /.docker-image ]] && {
44 | :
45 | }
46 |
47 | exit 0
48 |
--------------------------------------------------------------------------------