mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
Rename all occurrences of NextCloudPi to NextcloudPi (apart from fixed urls)
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
c04ff3a549
commit
d43d863c0c
4
.github/ISSUE_TEMPLATE/1_Bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/1_Bug_report.md
vendored
@ -5,7 +5,7 @@ about: Report errors and problems
|
||||
---
|
||||
|
||||
<!--
|
||||
Thanks for reporting issues back to NextCloudPi!
|
||||
Thanks for reporting issues back to NextcloudPi!
|
||||
|
||||
Here you can file bugs and feature requests. **Do NOT ask questions**, this is not a support forum.
|
||||
|
||||
@ -13,7 +13,7 @@ If there is an important security issue that has gone unnoticed, please send a p
|
||||
|
||||
### DO NOT ASK QUESTIONS, USE THE FORUMS
|
||||
|
||||
NCP and its extras are explained in the wiki, also make sure to read the articles in ownyourbits explaining NextCloudPi extras before asking. https://ownyourbits.com/category/nextcloudpi/
|
||||
NCP and its extras are explained in the wiki, also make sure to read the articles in ownyourbits explaining NextcloudPi extras before asking. https://ownyourbits.com/category/nextcloudpi/
|
||||
|
||||
For asking questions, please use the forums. https://help.nextcloud.com/c/support/appliances-docker-snappy-vm
|
||||
|
||||
|
||||
8
.github/ISSUE_TEMPLATE/3_Support_question.md
vendored
8
.github/ISSUE_TEMPLATE/3_Support_question.md
vendored
@ -4,7 +4,7 @@ about: Do NOT ask here - Use the forum
|
||||
|
||||
---
|
||||
|
||||
Thanks for reporting issues back to NextCloudPi!
|
||||
Thanks for reporting issues back to NextcloudPi!
|
||||
|
||||
Here you can file bugs and feature requests. **Do NOT ask questions**, this is not a support forum.
|
||||
|
||||
@ -12,11 +12,11 @@ Here you can file bugs and feature requests. **Do NOT ask questions**, this is n
|
||||
DO NOT ASK QUESTIONS, USE THE FORUMS
|
||||
---
|
||||
|
||||
NCP and its extras are explained in the wiki, also make sure to read the articles in ownyourbits explaining NextCloudPi extras before asking. https://ownyourbits.com/category/nextcloudpi/
|
||||
NCP and its extras are explained in the wiki, also make sure to read the articles in ownyourbits explaining NextcloudPi extras before asking. https://ownyourbits.com/category/nextcloudpi/
|
||||
|
||||
We use GitHub issues only to discuss about NextCloudPi bugs and new features.
|
||||
We use GitHub issues only to discuss about NextcloudPi bugs and new features.
|
||||
|
||||
NCP and its extras are explained in the [wiki](https://github.com/nextcloud/nextcloudpi/wiki), also make sure to read the [articles in ownyourbits](https://ownyourbits.com/category/nextcloudpi/) explaining NextCloudPi extras before asking.
|
||||
NCP and its extras are explained in the [wiki](https://github.com/nextcloud/nextcloudpi/wiki), also make sure to read the [articles in ownyourbits](https://ownyourbits.com/category/nextcloudpi/) explaining NextcloudPi extras before asking.
|
||||
|
||||
For any other question or comment, please use the [forums](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm), and make sure to tag
|
||||
the thread as `ncp`.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
name: ⛔ Documentation Issue
|
||||
about: See the NextCloudPi Wiki
|
||||
about: See the NextcloudPi Wiki
|
||||
|
||||
---
|
||||
|
||||
The NextCloudPi wiki is open to anyone to edit. If you find something inaccurate,
|
||||
The NextcloudPi wiki is open to anyone to edit. If you find something inaccurate,
|
||||
missing or that can be improved, please feel free to contribute to it.
|
||||
|
||||
https://github.com/nextcloud/nextcloudpi/wiki
|
||||
|
||||
2
.github/ISSUE_TEMPLATE/5_Security_issue.md
vendored
2
.github/ISSUE_TEMPLATE/5_Security_issue.md
vendored
@ -6,7 +6,7 @@ about: Email nacho [at] ownyourbits.com
|
||||
|
||||
⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
|
||||
|
||||
If you have found a security issue in NextCloudPi, please send the details to
|
||||
If you have found a security issue in NextcloudPi, please send the details to
|
||||
nacho [at] ownyourbits.com and don't disclose it publicly until we can provide a
|
||||
fix for it.
|
||||
|
||||
|
||||
6
.github/workflows/build-lxd.yml
vendored
6
.github/workflows/build-lxd.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
id: pack-lxd
|
||||
run: |
|
||||
. ./build/buildlib.sh
|
||||
ARTIFACT_FILE="NextCloudPi_LXD_${VERSION//\//_}"
|
||||
ARTIFACT_FILE="NextcloudPi_LXD_${VERSION//\//_}"
|
||||
lxc image export -q ncp/"${version}" "output/${ARTIFACT_FILE}"
|
||||
echo "::set-output name=artifact_file::${ARTIFACT_FILE}.tar.gz"
|
||||
- name: upload LXD image to artifact store
|
||||
@ -104,7 +104,7 @@ jobs:
|
||||
id: pack-lxd
|
||||
run: |
|
||||
. ./build/buildlib.sh
|
||||
ARTIFACT_FILE="NextCloudPi_LXD_${VERSION//\//_}"
|
||||
ARTIFACT_FILE="NextcloudPi_LXD_${VERSION//\//_}"
|
||||
lxc image export -q ncp/"${version}" "output/${ARTIFACT_FILE}"
|
||||
echo "::set-output name=artifact_file::${ARTIFACT_FILE}.tar.gz"
|
||||
- name: upload LXD image to artifact store
|
||||
@ -181,7 +181,7 @@ jobs:
|
||||
run: |
|
||||
set -x
|
||||
. ./build/buildlib.sh
|
||||
ARTIFACT_FILE="NextCloudPi_LXD_${VERSION//\//_}"
|
||||
ARTIFACT_FILE="NextcloudPi_LXD_${VERSION//\//_}"
|
||||
lxc publish -q ncp -f --alias "ncp/updated"
|
||||
mkdir -p output
|
||||
lxc image export -q "ncp/updated" "output/${ARTIFACT_FILE}"
|
||||
|
||||
6
.github/workflows/build-sd-images.yml
vendored
6
.github/workflows/build-sd-images.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
||||
run: |
|
||||
set -ex
|
||||
export LIB_TAG=master
|
||||
export IMG="NextCloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
export IMG="NextcloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
[[ "${{ github.ref_protected }}" == true ]] || export DBG=x
|
||||
|
||||
./build/build-SD-armbian.sh "${{ inputs.board_id }}" "${{ inputs.board_name }}"
|
||||
@ -79,7 +79,7 @@ jobs:
|
||||
sudo rm -rf armbian/ tmp/ output/
|
||||
|
||||
export LIB_TAG=master
|
||||
export IMG="NextCloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
export IMG="NextcloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
[[ "${{ github.ref_protected }}" == true ]] || export DBG=x
|
||||
|
||||
./build/build-SD-armbian.sh "${{ inputs.board_id }}" "${{ inputs.board_name }}"
|
||||
@ -101,7 +101,7 @@ jobs:
|
||||
run: |
|
||||
set -ex
|
||||
echo "Protected? ${{ github.ref_protected }}"
|
||||
export IMG="NextCloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
export IMG="NextcloudPi_${{ inputs.board_name }}_${VERSION//\//_}.img"
|
||||
[[ "${{ github.ref_protected }}" == true ]] || export DBG=x
|
||||
wget -q https://github.com/multiarch/qemu-user-static/releases/latest/download/qemu-aarch64-static -O ./qemu-aarch64-static
|
||||
./build/build-SD-rpi.sh
|
||||
|
||||
14
README.md
14
README.md
@ -1,15 +1,15 @@
|
||||
English | [Traditional Chinese 繁體中文](i18n/README-zh_TW.md) | [Simplified Chinese 简体中文](i18n/README-zh_CN.md)
|
||||
|
||||
# NextCloudPi [](https://t.me/NextCloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
# NextcloudPi [](https://t.me/NextcloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
|
||||
|
||||

|
||||
|
||||
This is the build code for [NextCloudPi](https://nextcloudpi.com).
|
||||
This is the build code for [NextcloudPi](https://nextcloudpi.com).
|
||||
|
||||
NextCloudPi is a ready to use image for Virtual Machines, Raspberry Pi, Odroid HC1, rock64 and other boards [(⇒Downloads)](https://github.com/nextcloud/nextcloudpi/releases).
|
||||
NextcloudPi is a ready to use image for Virtual Machines, Raspberry Pi, Odroid HC1, rock64 and other boards [(⇒Downloads)](https://github.com/nextcloud/nextcloudpi/releases).
|
||||
|
||||
This code also generates the NextCloudPi [docker image](https://hub.docker.com/r/ownyourbits/nextcloudpi), LXD and VM, and includes an installer for any Debian based system.
|
||||
This code also generates the NextcloudPi [docker image](https://hub.docker.com/r/ownyourbits/nextcloudpi), LXD and VM, and includes an installer for any Debian based system.
|
||||
|
||||
Find the full documentation at [docs.nextcloudpi.com](http://docs.nextcloudpi.com)
|
||||
|
||||
@ -42,7 +42,7 @@ Find the full documentation at [docs.nextcloudpi.com](http://docs.nextcloudpi.co
|
||||
## Extras
|
||||
|
||||
* Setup wizard
|
||||
* NextCloudPi Web Panel
|
||||
* NextcloudPi Web Panel
|
||||
* Wi-Fi ready
|
||||
* Ram logs
|
||||
* Automatic security updates, activated by default.
|
||||
@ -98,7 +98,7 @@ docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudp
|
||||
## Run in LXD
|
||||
|
||||
```
|
||||
lxc import NextCloudPi_LXD_09-29-21.tar.bz
|
||||
lxc import NextcloudPi_LXD_09-29-21.tar.bz
|
||||
lxc start ncp
|
||||
```
|
||||
|
||||
@ -134,7 +134,7 @@ build/build-docker.sh arm64
|
||||
build/build-LXD.sh
|
||||
```
|
||||
|
||||
NextCloudPi can be installed in any architecture running the latest Debian
|
||||
NextcloudPi can be installed in any architecture running the latest Debian
|
||||
|
||||
_Note: this assumes a clean Debian install, and there is no rollback method_
|
||||
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
|
||||
# print message if an update is available
|
||||
|
||||
VERFILE=/usr/local/etc/ncp-version
|
||||
VERFILE=/usr/local/etc/ncp-version
|
||||
LATEST=/var/run/.ncp-latest-version
|
||||
|
||||
if ncp-test-updates; then
|
||||
echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is outdated"
|
||||
echo -e "update to \e[1m$( cat $LATEST )\e[0m through 'ncp-config' or type 'sudo ncp-update'"
|
||||
echo -e "\nNextcloudPi \e[1m$( cat $VERFILE)\e[0m is outdated"
|
||||
echo -e "update to \e[1m$( cat $LATEST )\e[0m through 'ncp-config' or type 'sudo ncp-update'"
|
||||
else
|
||||
echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is up to date"
|
||||
echo -e "\nNextcloudPi \e[1m$( cat $VERFILE)\e[0m is up to date"
|
||||
fi
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi software configuration
|
||||
# NextcloudPi software configuration
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -23,7 +23,7 @@ source /usr/local/etc/library.sh
|
||||
|
||||
latest_ver="$(cat /var/run/.ncp-latest-version 2>/dev/null)"
|
||||
whiptail --backtitle "$backtitle $ncpversion" \
|
||||
--title "NextCloudPi update available" \
|
||||
--title "NextcloudPi update available" \
|
||||
--clear --yesno "Update to $latest_ver?\n\n$changelog" \
|
||||
15 70
|
||||
|
||||
@ -59,7 +59,7 @@ function generate_list()
|
||||
function config_menu()
|
||||
{
|
||||
local dir="$1"
|
||||
local backtitle="NextCloudPi configuration ver. "
|
||||
local backtitle="NextcloudPi configuration ver. "
|
||||
local ncpversion="$(cat /usr/local/etc/ncp-version )"
|
||||
local cfgdir=/usr/local/etc/ncp-config.d
|
||||
local dialog_ok=0
|
||||
@ -73,7 +73,7 @@ function config_menu()
|
||||
# launch the selection menu
|
||||
[[ "$dir" == "$BINDIR" ]] && local cancel_btn="Finish" || local cancel_btn="Back"
|
||||
ncp_app=$( whiptail --backtitle "$backtitle $ncpversion" \
|
||||
--title "NextCloudPi Configuration Tool (ncp-config)" \
|
||||
--title "NextcloudPi Configuration Tool (ncp-config)" \
|
||||
--cancel-button $cancel_btn --ok-button Select \
|
||||
--menu "Select ncp-app to configure or activate:" 20 105 10 \
|
||||
"${list[@]}" \
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi diagnostics report
|
||||
# NextcloudPi diagnostics report
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -14,8 +14,8 @@
|
||||
source /usr/local/etc/library.sh
|
||||
|
||||
# Distro, NCP version and tag
|
||||
echo "NextCloudPi version|$( cat /usr/local/etc/ncp-version )"
|
||||
[[ -f /usr/local/etc/ncp-baseimage ]] && echo "NextCloudPi image|$( cat /usr/local/etc/ncp-baseimage )"
|
||||
echo "NextcloudPi version|$( cat /usr/local/etc/ncp-version )"
|
||||
[[ -f /usr/local/etc/ncp-baseimage ]] && echo "NextcloudPi image|$( cat /usr/local/etc/ncp-baseimage )"
|
||||
echo "OS|$(cat /etc/issue | sed 's| \\n \\l||'). $(uname -r) ($(uname -m))"
|
||||
|
||||
# Data
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi diagnostics report
|
||||
# NextcloudPi diagnostics report
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -38,7 +38,7 @@ echo "<--! Paste this in GitHub report -->"
|
||||
|
||||
##
|
||||
|
||||
open_summary "NextCloudPi diagnostics"
|
||||
open_summary "NextcloudPi diagnostics"
|
||||
bash /usr/local/bin/ncp-diag | sed -r 's=(IP|certificates|gateway).*=\1|***REMOVED SENSITIVE VALUE***=g' | column -t -s'|'
|
||||
close_summary
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# NextCloudPi configuration suggestions
|
||||
# NextcloudPi configuration suggestions
|
||||
#
|
||||
# Copyleft 2018 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -15,7 +15,7 @@
|
||||
OUT="$@"
|
||||
|
||||
source /usr/local/etc/library.sh
|
||||
|
||||
|
||||
check_distro || \
|
||||
echo -e "You are using an outdated distro release. You should upgrade to latest Debian/Raspbian"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# update latest NextCloudPi code from github
|
||||
# update latest NextcloudPi code from github
|
||||
|
||||
[[ -z "$DBG" ]] || set -$DBG
|
||||
|
||||
@ -59,6 +59,6 @@ fi
|
||||
sed '/HEAD ->\|origin/s|\[.*\(tag: v[0-9]\+\.[0-9]\+\.[0-9]\+\).*\]|[\1]|' | \
|
||||
sed 's|* \[tag: |[|' > /usr/local/etc/ncp-changelog
|
||||
|
||||
echo -e "NextCloudPi updated to version $VER"
|
||||
echo -e "NextcloudPi updated to version $VER"
|
||||
exit 0
|
||||
} # force to read the whole thing into memory, as its contents might change in update.sh
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Export NextCloudPi configuration
|
||||
# Export NextcloudPi configuration
|
||||
#
|
||||
#
|
||||
# Copyleft 2017 by Courtney Hicks
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
|
||||
configure()
|
||||
configure()
|
||||
{
|
||||
[[ -d "$DIR" ]] || { echo "directory $DIR does not exist"; return 1; }
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Import NextCloudPi configuration
|
||||
# Import NextcloudPi configuration
|
||||
#
|
||||
#
|
||||
# Copyleft 2017 by Courtney Hicks
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# NextCloudPi scheduled datadir BTRFS snapshots
|
||||
# NextcloudPi scheduled datadir BTRFS snapshots
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data dir configuration script for NextCloudPi
|
||||
# Data dir configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data dir configuration script for NextCloudPi
|
||||
# Data dir configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# HTTPS rewrite configuration script for NextCloudPi
|
||||
# HTTPS rewrite configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -126,7 +126,7 @@ EOF
|
||||
}
|
||||
|
||||
mysql nextcloud <<EOF
|
||||
replace into oc_appconfig values ( 'theming', 'name' , "NextCloudPi" );
|
||||
replace into oc_appconfig values ( 'theming', 'name' , "NextcloudPi" );
|
||||
replace into oc_appconfig values ( 'theming', 'slogan' , "keep your data close" );
|
||||
replace into oc_appconfig values ( 'theming', 'url' , "https://ownyourbits.com" );
|
||||
replace into oc_appconfig values ( 'theming', 'logoMime' , "image/svg+xml" );
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# System limits configuration for NextCloudPi
|
||||
# System limits configuration for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Manually add trusted domains in NextCloudPi
|
||||
# Manually add trusted domains in NextcloudPi
|
||||
#
|
||||
# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# DuckDNS installation on Raspbian for NextCloudPi
|
||||
# DuckDNS installation on Raspbian for NextcloudPi
|
||||
#
|
||||
#
|
||||
# Copyleft 2017 by Courtney Hicks
|
||||
@ -12,7 +12,7 @@ INSTALLDIR=duckdns
|
||||
INSTALLPATH=/usr/local/etc/$INSTALLDIR
|
||||
CRONFILE=/etc/cron.d/duckdns
|
||||
|
||||
configure()
|
||||
configure()
|
||||
{
|
||||
local DOMAIN="$( sed 's|.duckdns.org||' <<<"$DOMAIN" )"
|
||||
if [[ $ACTIVE == "yes" ]]; then
|
||||
@ -23,7 +23,7 @@ configure()
|
||||
touch "$INSTALLPATH"/duck.log
|
||||
echo -e "echo url=\"https://www.duckdns.org/update?domains=$DOMAIN&token=$TOKEN&ip=\" | curl -k -o "$INSTALLPATH"/duck.log -K -" > "$INSTALLPATH"/duck.sh
|
||||
|
||||
# Adds file to cron to run script for DNS record updates and change permissions
|
||||
# Adds file to cron to run script for DNS record updates and change permissions
|
||||
touch $CRONFILE
|
||||
echo "*/5 * * * * root $INSTALLPATH/duck.sh >/dev/null 2>&1" > "$CRONFILE"
|
||||
chmod 700 "$INSTALLPATH"/duck.sh
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Let's encrypt certbot installation on NextCloudPi
|
||||
# Let's encrypt certbot installation on NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Use uPnP to forward router ports for NextCloudPi
|
||||
# Use uPnP to forward router ports for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -15,7 +15,7 @@ install()
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends miniupnpc
|
||||
}
|
||||
|
||||
configure()
|
||||
configure()
|
||||
{
|
||||
local ip
|
||||
ip="$(get_ip)"
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
# More at: https://ownyourbits.com
|
||||
#
|
||||
|
||||
configure()
|
||||
configure()
|
||||
{
|
||||
local GW="$( ip r | grep "default via" | awk '{ print $3 }' | head -1 )"
|
||||
local DNS="$( grep nameserver /etc/resolv.conf | head -1 | awk '{ print $2 }' )"
|
||||
@ -19,8 +19,8 @@ configure()
|
||||
## DHCPCD
|
||||
[[ -f /etc/dhcpcd.conf ]] && {
|
||||
# delete NCP config
|
||||
grep -q "^# NextCloudPi autogenerated" /etc/dhcpcd.conf && \
|
||||
sed -i '/^# NextCloudPi autogenerated/,+6d' /etc/dhcpcd.conf
|
||||
grep -q "^# Next(c|C)loudPi autogenerated" /etc/dhcpcd.conf && \
|
||||
sed -i '/^# Next(c|C)loudPi autogenerated/,+6d' /etc/dhcpcd.conf
|
||||
|
||||
[[ $ACTIVE != "yes" ]] && {
|
||||
systemctl restart dhcpcd
|
||||
@ -29,7 +29,7 @@ configure()
|
||||
}
|
||||
|
||||
cat >> /etc/dhcpcd.conf <<EOF
|
||||
# NextCloudPi autogenerated
|
||||
# NextcloudPi autogenerated
|
||||
# don't modify! better use ncp-config
|
||||
interface $IFACE
|
||||
static ip_address=$IP/24
|
||||
@ -86,7 +86,7 @@ EOF
|
||||
ifdown "${IFACE}"
|
||||
ifup "${IFACE}"
|
||||
}
|
||||
|
||||
|
||||
ncc config:system:set trusted_domains 1 --value="$IP"
|
||||
set-nc-domain "${IP}"
|
||||
echo "Static IP set to $IP"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Manually add trusted proxies in NextCloudPi
|
||||
# Manually add trusted proxies in NextcloudPi
|
||||
#
|
||||
# Copyleft 2019 by Pascal Haefliger <45995338+paschaef_a_t_users_d_o_t_noreply_d_o_tgithub_d_o_t_com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# no-ip.org installation on NextCloudPi
|
||||
# no-ip.org installation on NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -27,7 +27,7 @@ install()
|
||||
|
||||
cat >> /etc/samba/smb.conf <<EOF
|
||||
|
||||
# NextCloudPi automatically generated from here. Do not remove this comment
|
||||
# NextcloudPi automatically generated from here. Do not remove this comment
|
||||
EOF
|
||||
}
|
||||
|
||||
@ -54,11 +54,11 @@ configure()
|
||||
################################
|
||||
|
||||
# remove files from this line to the end
|
||||
sed -i '/# NextCloudPi automatically/,/\$/d' /etc/samba/smb.conf
|
||||
sed -i '/# NextcloudPi automatically/,/\$/d' /etc/samba/smb.conf
|
||||
|
||||
# restore this line
|
||||
cat >> /etc/samba/smb.conf <<EOF
|
||||
# NextCloudPi automatically generated from here. Do not remove this comment
|
||||
# NextcloudPi automatically generated from here. Do not remove this comment
|
||||
EOF
|
||||
|
||||
# create a share per Nextcloud user
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# spDYN setup for NextCloudPi
|
||||
# spDYN setup for NextcloudPi
|
||||
#
|
||||
#
|
||||
# Copyleft 2017/2018 by Timm Goldenstein and Timo Stiefel
|
||||
@ -19,7 +19,7 @@ install()
|
||||
# Create the spdnsUpdater.sh
|
||||
mkdir -p "$INSTALLPATH"
|
||||
# Write the script to file
|
||||
cat > "$INSTALLPATH"/spdnsUpdater.sh <<'EOF'
|
||||
cat > "$INSTALLPATH"/spdnsUpdater.sh <<'EOF'
|
||||
#!/bin/bash
|
||||
|
||||
### Usage
|
||||
@ -39,14 +39,14 @@ update_url="https://update.spdyn.de/nic/update"
|
||||
|
||||
|
||||
### Update procedure
|
||||
function spdnsUpdater {
|
||||
function spdnsUpdater {
|
||||
# Send the current IP address to spdyn.de
|
||||
# and show the response
|
||||
|
||||
|
||||
params=$1
|
||||
updater=$(wget -qO- --post-data $params $update_url)
|
||||
updater=$(echo $updater | grep -o '^[a-z]*')
|
||||
|
||||
|
||||
case "$updater" in
|
||||
abuse) echo "[$updater] Der Host kann nicht aktualisiert werden, da er aufgrund vorheriger fehlerhafter Updateversuche gesperrt ist."
|
||||
;;
|
||||
@ -89,10 +89,10 @@ EOF
|
||||
|
||||
}
|
||||
|
||||
configure()
|
||||
configure()
|
||||
{
|
||||
if [[ $ACTIVE == "yes" ]]; then
|
||||
|
||||
|
||||
# Adds file to cron to run script for DNS record updates and change permissions
|
||||
touch $CRONFILE
|
||||
echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN $TOKEN >/dev/null 2>&1" > "$CRONFILE"
|
||||
@ -100,7 +100,7 @@ configure()
|
||||
|
||||
# First-time execution of update script and print response from spdns.de server
|
||||
"$INSTALLPATH"/spdnsUpdater.sh "$DOMAIN" "$TOKEN"
|
||||
|
||||
|
||||
echo -e "\nspdnsUpdater is now enabled"
|
||||
|
||||
# Removes config files and cron job if ACTIVE_ is set to no
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Fail2ban for NextCloudPi
|
||||
# Fail2ban for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -30,7 +30,7 @@ install()
|
||||
|
||||
# tweak fail2ban email
|
||||
local F=/etc/fail2ban/action.d/sendmail-common.conf
|
||||
sed -i 's|Fail2Ban|NextCloudPi|' /etc/fail2ban/action.d/sendmail-whois-lines.conf
|
||||
sed -i 's|Fail2Ban|NextcloudPi|' /etc/fail2ban/action.d/sendmail-whois-lines.conf
|
||||
grep -q actionstart_ "$F" || sed -i 's|actionstart|actionstart_|' "$F"
|
||||
grep -q actionstop_ "$F" || sed -i 's|actionstop|actionstop_|' "$F"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# modsecurity WAF installation on Raspbian
|
||||
# modsecurity WAF installation on Raspbian
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -16,7 +16,7 @@ install()
|
||||
|
||||
cat >> /etc/modsecurity/crs/crs-setup.conf <<'EOF'
|
||||
|
||||
# NextCloudPi: allow PROPFIND for webDAV
|
||||
# NextcloudPi: allow PROPFIND for webDAV
|
||||
SecAction "id:900200, phase:1, nolog, pass, t:none, setvar:'tx.allowed_methods=GET HEAD POST OPTIONS PROPFIND'"
|
||||
EOF
|
||||
|
||||
@ -37,8 +37,8 @@ EOF
|
||||
EOF
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
configure()
|
||||
{
|
||||
local NCDIR=/var/www/nextcloud/
|
||||
local NCPWB=/var/www/ncp-web/
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Launch security audit reports for NextCloudPi
|
||||
# Launch security audit reports for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -22,7 +22,7 @@ skip-test=CUST-0810
|
||||
# Won't install puppet or similar
|
||||
skip-test=TOOL-5002
|
||||
|
||||
# Raspbian doesn't have security sources ( https://www.raspberrypi.org/forums/viewtopic.php?t=98006&p=680175 )
|
||||
# Raspbian doesn't have security sources ( https://www.raspberrypi.org/forums/viewtopic.php?t=98006&p=680175 )
|
||||
skip-test=PKGS-7388
|
||||
|
||||
# We have a preset partition scheme in the SD card
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data at rest encryption for NextCloudPi
|
||||
# Data at rest encryption for NextcloudPi
|
||||
#
|
||||
# Copyleft 2021 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Automount configuration for NextCloudPi
|
||||
# Automount configuration for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -47,7 +47,7 @@ EOF
|
||||
source /usr/local/etc/library.sh
|
||||
wall "\$SMARTD_MESSAGE"
|
||||
notify_admin \
|
||||
"NextCloudPi HDD health \$SMARTD_FAILTYPE" \
|
||||
"NextcloudPi HDD health \$SMARTD_FAILTYPE" \
|
||||
"\$SMARTD_MESSAGE"
|
||||
EOF
|
||||
chmod +x /usr/local/etc/ncp-hdd-notif.sh
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data dir configuration script for NextCloudPi
|
||||
# Data dir configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data dir configuration script for NextCloudPi
|
||||
# Data dir configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi ZRAM settings
|
||||
# NextcloudPi ZRAM settings
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -63,7 +63,7 @@ chmod +x /usr/local/bin/ncp-zram
|
||||
|
||||
configure()
|
||||
{
|
||||
[[ $ACTIVE != "yes" ]] && {
|
||||
[[ $ACTIVE != "yes" ]] && {
|
||||
systemctl stop zram
|
||||
systemctl disable zram
|
||||
echo "ZRAM disabled"
|
||||
|
||||
@ -29,7 +29,7 @@ if [[ \${PIPESTATUS[0]} -eq 0 ]]; then
|
||||
|
||||
VER="\$( /usr/local/bin/ncc status | grep "version:" | awk '{ print \$3 }' )"
|
||||
|
||||
notify_admin "NextCloudPi" "Nextcloud was updated to \$VER"
|
||||
notify_admin "NextcloudPi" "Nextcloud was updated to \$VER"
|
||||
fi
|
||||
echo "" >> /var/log/ncp.log
|
||||
EOF
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Automatically apply NextCloudPi updates
|
||||
# Automatically apply NextcloudPi updates
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -11,9 +11,9 @@
|
||||
|
||||
configure()
|
||||
{
|
||||
[[ $ACTIVE != "yes" ]] && {
|
||||
[[ $ACTIVE != "yes" ]] && {
|
||||
rm -f /etc/cron.daily/ncp-autoupdate
|
||||
echo "automatic NextCloudPi updates disabled"
|
||||
echo "automatic NextcloudPi updates disabled"
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -25,11 +25,11 @@ exec >> /var/log/ncp.log 2>&1
|
||||
echo "\$(date) - Running \$0..."
|
||||
if /usr/local/bin/ncp-test-updates; then
|
||||
/usr/local/bin/ncp-update || exit 1
|
||||
notify_admin "NextCloudPi" "NextCloudPi was updated to \$(cat /usr/local/etc/ncp-version)"
|
||||
notify_admin "NextcloudPi" "NextcloudPi was updated to \$(cat /usr/local/etc/ncp-version)"
|
||||
fi
|
||||
EOF
|
||||
chmod 755 /etc/cron.daily/ncp-autoupdate
|
||||
echo "automatic NextCloudPi updates enabled"
|
||||
echo "automatic NextcloudPi updates enabled"
|
||||
}
|
||||
|
||||
install() { :; }
|
||||
|
||||
@ -33,7 +33,7 @@ NOTIFIED=/var/run/.ncp-version-notified
|
||||
/usr/local/bin/ncp-check-nc-version
|
||||
|
||||
test -e $LATEST || exit 0;
|
||||
/usr/local/bin/ncp-test-updates || { echo "NextCloudPi up to date"; exit 0; }
|
||||
/usr/local/bin/ncp-test-updates || { echo "NextcloudPi up to date"; exit 0; }
|
||||
|
||||
test -e $NOTIFIED && [[ "$( cat $LATEST )" == "$( cat $NOTIFIED )" ]] && {
|
||||
echo "Found update from $( cat $VERFILE ) to $( cat $LATEST ). Already notified"
|
||||
@ -43,7 +43,7 @@ test -e $NOTIFIED && [[ "$( cat $LATEST )" == "$( cat $NOTIFIED )" ]] && {
|
||||
echo "Found update from $( cat $VERFILE ) to $( cat $LATEST ). Sending notification..."
|
||||
|
||||
notify_admin \
|
||||
"NextCloudPi update" \
|
||||
"NextcloudPi update" \
|
||||
"Update from $( cat $VERFILE ) to $( cat $LATEST ) is available. Update from https://$(get_ip):4443"
|
||||
|
||||
cat $LATEST > $NOTIFIED
|
||||
@ -75,7 +75,7 @@ echo -e "Packages automatically upgraded: $PKGS\n"
|
||||
|
||||
# notify
|
||||
notify_admin \
|
||||
"NextCloudPi Unattended Upgrades" \
|
||||
"NextcloudPi Unattended Upgrades" \
|
||||
"Packages automatically upgraded $PKGS"
|
||||
EOF
|
||||
chmod +x /usr/local/bin/ncp-notify-unattended-upgrade
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Data dir configuration script for NextCloudPi
|
||||
# Data dir configuration script for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Unattended upgrades installation on NextCloudPi
|
||||
# Unattended upgrades installation on NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
# arguments: $RELEASE $LINUXFAMILY $BOARD $BUILD_DESKTOP
|
||||
|
||||
# This is the image customization script for NextCloudPi on Armbian
|
||||
# This is the image customization script for NextcloudPi on Armbian
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -25,7 +25,7 @@ source etc/library.sh # sets RELEASE
|
||||
chage -d -1 root
|
||||
|
||||
# install NCP
|
||||
echo -e "\nInstalling NextCloudPi"
|
||||
echo -e "\nInstalling NextcloudPi"
|
||||
|
||||
hostname -F /etc/hostname # fix 'sudo resolve host' errors
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Batch creation of NextCloudPi images and containers
|
||||
# Batch creation of NextcloudPi images and containers
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Batch creation of NextCloudPi LXC image
|
||||
# Batch creation of NextcloudPi LXC image
|
||||
#
|
||||
# Copyleft 2021 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -14,7 +14,7 @@ source build/buildlib.sh
|
||||
echo -e "\e[1m\n[ Build NCP LXC ]\e[0m"
|
||||
|
||||
#CLEAN=0 # Pass this envvar to skip cleaning download cache
|
||||
IMG="NextCloudPi_LXC_$( date "+%m-%d-%y" ).img"
|
||||
IMG="NextcloudPi_LXC_$( date "+%m-%d-%y" ).img"
|
||||
IMG=tmp/"$IMG"
|
||||
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Batch creation of NextCloudPi LXD image
|
||||
# Batch creation of NextcloudPi LXD image
|
||||
#
|
||||
# Copyleft 2021 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -14,7 +14,7 @@ source build/buildlib.sh
|
||||
echo -e "\e[1m\n[ Build NCP LXD ]\e[0m"
|
||||
|
||||
#CLEAN=0 # Pass this envvar to skip cleaning download cache
|
||||
IMG="NextCloudPi_LXD_$( date "+%m-%d-%y" ).img"
|
||||
IMG="NextcloudPi_LXD_$( date "+%m-%d-%y" ).img"
|
||||
IMG=tmp/"$IMG"
|
||||
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Batch creation of NextCloudPi Armbian based images
|
||||
# Batch creation of NextcloudPi Armbian based images
|
||||
#
|
||||
# Copyleft 2018 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -18,7 +18,7 @@ NCPCFG=etc/ncp.cfg
|
||||
|
||||
echo -e "\e[1m\n[ Build NCP ${BNAME} ]\e[0m"
|
||||
|
||||
IMG="${IMG:-NextCloudPi_${BNAME}_$( date "+%m-%d-%y" ).img}"
|
||||
IMG="${IMG:-NextcloudPi_${BNAME}_$( date "+%m-%d-%y" ).img}"
|
||||
IMG=tmp/"$IMG"
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ source build/buildlib.sh
|
||||
echo -e "\e[1m\n[ Build NCP Berryboot ]\e[0m"
|
||||
|
||||
SRC="$1"
|
||||
IMG="NextCloudPi_RPi_Berryboot_$( date "+%m-%d-%y" ).img"
|
||||
IMG="NextcloudPi_RPi_Berryboot_$( date "+%m-%d-%y" ).img"
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
test -f "$TAR" && { echo "$TAR already exists. Skipping... "; exit 0; }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Batch creation of NextCloudPi image
|
||||
# Batch creation of NextcloudPi image
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -16,7 +16,7 @@ echo -e "\e[1m\n[ Build NCP Raspberry Pi ]\e[0m"
|
||||
URL="https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-01-28/2022-01-28-raspios-bullseye-arm64-lite.zip"
|
||||
SIZE=4G # Raspbian image size
|
||||
#CLEAN=0 # Pass this envvar to skip cleaning download cache
|
||||
IMG="${IMG:-NextCloudPi_RPi_$( date "+%m-%d-%y" ).img}"
|
||||
IMG="${IMG:-NextcloudPi_RPi_$( date "+%m-%d-%y" ).img}"
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
##############################################################################
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Batch creation of NextCloudPi VM image
|
||||
# Batch creation of NextcloudPi VM image
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -16,7 +16,7 @@ echo -e "\e[1m\n[ Build NCP VM ]\e[0m"
|
||||
IP=${1:-192.168.0.145} # For QEMU automated testing (optional)
|
||||
SIZE=3G # Raspbian image size
|
||||
#CLEAN=0 # Pass this envvar to skip cleaning download cache
|
||||
IMG="${IMG:-NextCloudPi_VM_$( date "+%m-%d-%y" ).img}"
|
||||
IMG="${IMG:-NextcloudPi_VM_$( date "+%m-%d-%y" ).img}"
|
||||
IMG=tmp/"$IMG"
|
||||
VM="/var/lib/libvirt/images/ncp-vm.img"
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Batch-build docker container layers for NextCloudPi
|
||||
# Batch-build docker container layers for NextcloudPi
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -321,7 +321,7 @@ function create_torrent()
|
||||
[[ -d "$DIR" ]] && { echo "dir $DIR already exists"; return 1; }
|
||||
mkdir -p torrent/"$IMGNAME" && cp -v --reflink=auto "$TAR" torrent/"$IMGNAME"
|
||||
md5sum "$DIR"/*.bz2 > "$DIR"/md5sum
|
||||
createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextCloudPi. Nextcloud ready to use image" "$DIR" "$DIR".torrent
|
||||
createtorrent -a udp://tracker.opentrackr.org -p 1337 -c "NextcloudPi. Nextcloud ready to use image" "$DIR" "$DIR".torrent
|
||||
transmission-remote -w $(pwd)/torrent -a "$DIR".torrent
|
||||
}
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ bash /usr/local/bin/nextcloud-domain.sh
|
||||
ncc notify_push:self-test > /dev/null 2>&1 || ncc notify_push:setup "https://$2/push"
|
||||
}
|
||||
|
||||
echo "Nextcloud version $(nc_version). NextCloudPi version $(cat /usr/local/etc/ncp-version)"
|
||||
echo "Nextcloud version $(nc_version). NextcloudPi version $(cat /usr/local/etc/ncp-version)"
|
||||
|
||||
# Display NC logs in the docker logs
|
||||
tail -f -n0 /data/nextcloud/data/nextcloud.log &
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi function library
|
||||
# NextcloudPi function library
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -62,7 +62,7 @@ function configure_app()
|
||||
{
|
||||
local ncp_app="$1"
|
||||
local cfg_file="$CFGDIR/$ncp_app.cfg"
|
||||
local backtitle="NextCloudPi installer configuration"
|
||||
local backtitle="NextcloudPi installer configuration"
|
||||
local ret=1
|
||||
|
||||
# checks
|
||||
@ -334,7 +334,7 @@ function info_app()
|
||||
[[ "$infotitle" == "" ]] || [[ "$infotitle" == "null" ]] && infotitle="Info"
|
||||
|
||||
whiptail --yesno \
|
||||
--backtitle "NextCloudPi configuration" \
|
||||
--backtitle "NextcloudPi configuration" \
|
||||
--title "$infotitle" \
|
||||
--yes-button "I understand" \
|
||||
--no-button "Go back" \
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations":{
|
||||
"ACTIVE":"開啟",
|
||||
"Automatically apply NextCloudPi updates":"自動更新NextcloudPi",
|
||||
"Automatically apply NextcloudPi updates":"自動更新NextcloudPi",
|
||||
"nc-autoupdate-ncp":"自動更新NCP"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"DIR": "Directorio",
|
||||
"Export NextCloudPi configuration": "Exportar la configuración de NextCloudPi",
|
||||
"Export NextcloudPi configuration": "Exportar la configuración de NextcloudPi",
|
||||
"nc-export-ncp": "nc-export-ncp"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"DIR": "Diretório",
|
||||
"Export NextCloudPi configuration": "Exportar configurações do NextCloudPi",
|
||||
"Export NextcloudPi configuration": "Exportar configurações do NextcloudPi",
|
||||
"nc-export-ncp": "nc-exportar-ncp"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"DIR": "位置",
|
||||
"Export NextCloudPi configuration": "匯出NextCloudPi設定",
|
||||
"Export NextcloudPi configuration": "匯出NextcloudPi設定",
|
||||
"nc-export-ncp": "匯出NCP設定"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"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",
|
||||
"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",
|
||||
"HTTPPORT": "Puerto HTTP",
|
||||
"HTTPSPORT": "Puerto HTTPS",
|
||||
"Instructions for UPnP Port Forwarding": "Instrucciones para UPnP Port Forwarding",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"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.",
|
||||
"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.",
|
||||
"HTTPPORT": "Porta http",
|
||||
"HTTPSPORT": "Porta https",
|
||||
"nc-forward-ports": "nc-portas-encaminhadas (UPnP)",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"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",
|
||||
"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",
|
||||
"HTTPPORT": "http Port",
|
||||
"HTTPSPORT": "https Port",
|
||||
"nc-forward-ports": "端口轉發(UPnP)",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"FILE": "Fichero",
|
||||
"Import NextCloudPi configuration from file": "Importa la configuración de NextCloudPi desde un fichero",
|
||||
"Import NextcloudPi configuration from file": "Importa la configuración de NextcloudPi desde un fichero",
|
||||
"nc-import-ncp": "nc-import-ncp"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"FILE": "Arquivo",
|
||||
"Import NextCloudPi configuration from file": "Importar a configuração do NextCloudPi de um arquivo",
|
||||
"Import NextcloudPi configuration from file": "Importar a configuração do NextcloudPi de um arquivo",
|
||||
"nc-import-ncp": "nc-importa-ncp"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"FILE": "檔案位置",
|
||||
"Import NextCloudPi configuration from file": "匯入NextCloudPi設定",
|
||||
"Import NextcloudPi configuration from file": "匯入NextcloudPi設定",
|
||||
"nc-import-ncp": "匯入NCP設定"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Print NextCloudPi system info": "Muestra información de sistema de NCP",
|
||||
"Print NextcloudPi system info": "Muestra información de sistema de NCP",
|
||||
"nc-info": "nc-info"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Print NextCloudPi system info": "Imprime informações do sistema NextCloudPi",
|
||||
"Print NextcloudPi system info": "Imprime informações do sistema NextcloudPi",
|
||||
"nc-info": "nc-info"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Print NextCloudPi system info": "顯示NextCloudPi系統信息",
|
||||
"Print NextcloudPi system info": "顯示NextcloudPi系統信息",
|
||||
"nc-info": "NCP系統訊息"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations":{
|
||||
"(Re)initiate Nextcloud to a clean configuration":"初始化Nextcloud",
|
||||
"This action will configure NextCloud to NextCloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n":"重設後將使用預設文件配置(NextcloudPi)\n**您所有的資料及設定將會刪除並無法復原**",
|
||||
"This action will configure NextCloud to NextcloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n":"重設後將使用預設文件配置(NextcloudPi)\n**您所有的資料及設定將會刪除並無法復原**",
|
||||
"ADMINUSER":"管理員",
|
||||
"ADMINPASS":"管理員密碼",
|
||||
"nc-init":"初始化NC"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Configure system limits for NextCloudPi": "Configura los límites de sistema para NextCloudPi",
|
||||
"Configure system limits for NextcloudPi": "Configura los límites de sistema para NextcloudPi",
|
||||
"MAXFILESIZE":"Tamaño máximo de archivo en subida",
|
||||
"MEMORYLIMIT": "Límite de memoria",
|
||||
"PHPTHREADS": "Hilos PHP",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Configure system limits for NextCloudPi": "Configura os limites de sistema para NextCloudPi",
|
||||
"Configure system limits for NextcloudPi": "Configura os limites de sistema para NextcloudPi",
|
||||
"MAXFILESIZE":"Tamanho máximo de arquivo para upload",
|
||||
"MEMORYLIMIT": "Limite de memória",
|
||||
"PHPTHREADS": "THREADS PHP",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations": {
|
||||
"Configure system limits for NextCloudPi": "設定NextCloudPi的系統限制",
|
||||
"Configure system limits for NextcloudPi": "設定NextcloudPi的系統限制",
|
||||
"MAXFILESIZE": "最大文件大小(<=2G)",
|
||||
"MEMORYLIMIT": "內存限制",
|
||||
"PHPTHREADS": "PHP線程",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"MEMORYLIMIT":"Limíte de Memória",
|
||||
"MAXTRANSFERTIME":"Tempo máximo de transferência",
|
||||
"NextCloud installation":"Instalação NextCloud",
|
||||
"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",
|
||||
"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",
|
||||
"nc-nextcloud":"nc-nextcloud",
|
||||
"Install any NextCloud version":"Instalar qualquer versão NextCloud"
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"MEMORYLIMIT":"記憶體限制",
|
||||
"MAXTRANSFERTIME":"最大傳輸時間",
|
||||
"NextCloud installation":"重新下載安裝NextCloud",
|
||||
"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備份)",
|
||||
"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備份)",
|
||||
"nc-nextcloud":"重新安裝NC",
|
||||
"Install any NextCloud version":"下載安裝NextCloud"
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"translations":{
|
||||
"ACTIVE":"Ativo",
|
||||
"USER":"Usuário",
|
||||
"Notify in NC when a NextCloudPi update is available":"Notifica no NC quando uma atualização NextCloudPi está disponível",
|
||||
"Notify in NC when a NextcloudPi update is available":"Notifica no NC quando uma atualização NextcloudPi está disponível",
|
||||
"nc-notify-updates":"nc-notificar-atualizações"
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"translations":{
|
||||
"ACTIVE":"開啟",
|
||||
"USER":"使用者",
|
||||
"Notify in NC when a NextCloudPi update is available":"在NextcloudPi需要更新時在Nextcloud通知您",
|
||||
"Notify in NC when a NextcloudPi update is available":"在NextcloudPi需要更新時在Nextcloud通知您",
|
||||
"nc-notify-updates":"NCP更新通知"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"translations": {
|
||||
"CONFIRM": "Confirmar",
|
||||
"Change password for the NextCloudPi Panel": "Cambiar la contraseña para el Panel de NextCloudPi",
|
||||
"Change password for the NextcloudPi Panel": "Cambiar la contraseña para el Panel de NextcloudPi",
|
||||
"PASSWORD": "Contraseña",
|
||||
"nc-passwd": "nc-passwd"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations":{
|
||||
"Change password for the NextCloudPi Panel":"Mudar a senha para o painel NextCloudPi",
|
||||
"Change password for the NextcloudPi Panel":"Mudar a senha para o painel NextcloudPi",
|
||||
"nc-passwd":"nc-senha",
|
||||
"PASSWORD":"Senha",
|
||||
"CONFIRM":"Confirmar"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations":{
|
||||
"Change password for the NextCloudPi Panel":"修改NextCloudPi網頁介面的密碼",
|
||||
"Change password for the NextcloudPi Panel":"修改NextcloudPi網頁介面的密碼",
|
||||
"nc-passwd":"修改NCP密碼",
|
||||
"PASSWORD":"密碼",
|
||||
"CONFIRM":"再次輸入密碼"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations":{
|
||||
"Update NextCloudPi":"atualização NextCloudPi",
|
||||
"Update NextcloudPi":"atualização NextcloudPi",
|
||||
"nc-update":"nc-atualização"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"translations":{
|
||||
"Update NextCloudPi":"更新NextCloudPi",
|
||||
"Update NextcloudPi":"更新NextcloudPi",
|
||||
"nc-update":"更新NCP"
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-autoupdate-ncp",
|
||||
"name": "Nc-autoupdate-ncp",
|
||||
"title": "nc-autoupdate-ncp",
|
||||
"description": "Automatically apply NextCloudPi updates",
|
||||
"description": "Automatically apply NextcloudPi updates",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-export-ncp",
|
||||
"name": "Nc-export-ncp",
|
||||
"title": "nc-export-ncp",
|
||||
"description": "Export NextCloudPi configuration",
|
||||
"description": "Export NextcloudPi configuration",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"name": "Nc-forward-ports",
|
||||
"title": "nc-forward-ports",
|
||||
"description": "Set port forwarding to access from outside",
|
||||
"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",
|
||||
"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",
|
||||
"infotitle": "Instructions for UPnP Port Forwarding",
|
||||
"params": [
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-import-ncp",
|
||||
"name": "Nc-import-ncp",
|
||||
"title": "nc-import-ncp",
|
||||
"description": "Import NextCloudPi configuration from file",
|
||||
"description": "Import NextcloudPi configuration from file",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-info",
|
||||
"name": "Nc-info",
|
||||
"title": "nc-info",
|
||||
"description": "Print NextCloudPi system info",
|
||||
"description": "Print NextcloudPi system info",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": []
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"name": "Nc-init",
|
||||
"title": "nc-init",
|
||||
"description": "(Re)initiate Nextcloud to a clean configuration",
|
||||
"info": "This action will configure NextCloud to NextCloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n",
|
||||
"info": "This action will configure NextCloud to NextcloudPi defaults.\n\n** YOUR CONFIGURATION WILL BE LOST **\n\n",
|
||||
"infotitle": "Clean NextCloud configuration",
|
||||
"params": [
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-limits",
|
||||
"name": "Nc-limits",
|
||||
"title": "nc-limits",
|
||||
"description": "Configure system limits for NextCloudPi",
|
||||
"description": "Configure system limits for NextcloudPi",
|
||||
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-notify-updates",
|
||||
"name": "Nc-notify-updates",
|
||||
"title": "nc-notify-updates",
|
||||
"description": "Notify in Nextcloud when a NextCloudPi update is available",
|
||||
"description": "Notify in Nextcloud when a NextcloudPi update is available",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-passwd",
|
||||
"name": "Nc-passwd",
|
||||
"title": "nc-passwd",
|
||||
"description": "Change password for the NextCloudPi Panel",
|
||||
"description": "Change password for the NextcloudPi Panel",
|
||||
"info": "Please note some special characters are not allowed here, avoid using ) } ; # in password",
|
||||
"infotitle": "",
|
||||
"params": [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"id": "nc-update",
|
||||
"name": "Nc-update",
|
||||
"title": "nc-update",
|
||||
"description": "Update NextCloudPi",
|
||||
"description": "Update NextcloudPi",
|
||||
"info": "",
|
||||
"infotitle": "",
|
||||
"params": []
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
[English](/README.md) | [Traditional Chinese 繁體中文](README-zh_TW.md) | Simplified Chinese 简体中文
|
||||
|
||||
# NextCloudPi [](https://t.me/NextCloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
# NextcloudPi [](https://t.me/NextCloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
|
||||
|
||||

|
||||
|
||||
这里是用来构建 [NextCloudPi](https://nextcloudpi.com) 的代码。
|
||||
这里是用来构建 [NextcloudPi](https://nextcloudpi.com) 的代码。
|
||||
|
||||
NextCloudPi 是一款适用于 Raspberry Pi、Odroid HC1、rock64 等其他板卡的现成镜像。
|
||||
NextcloudPi 是一款适用于 Raspberry Pi、Odroid HC1、rock64 等其他板卡的现成镜像。
|
||||
|
||||
这个代码也可以用来生成 [ARM](https://hub.docker.com/r/ownyourbits/nextcloudpi-armhf) 和 [x86](https://hub.docker.com/r/ownyourbits/nextcloudpi-x86) 平台的 docker 镜像,并且包含一个适用于任何基于 Debian 系统的安装程序。
|
||||
|
||||
@ -35,7 +35,7 @@ NextCloudPi 是一款适用于 Raspberry Pi、Odroid HC1、rock64 等其他板
|
||||
## 额外之处
|
||||
|
||||
* 安装向导
|
||||
* NextCloudPi Web 面板
|
||||
* NextcloudPi Web 面板
|
||||
* 已准备好的 Wi-Fi
|
||||
* RAM 日志
|
||||
* 自动安装安全更新,默认激活
|
||||
@ -52,7 +52,7 @@ NextCloudPi 是一款适用于 Raspberry Pi、Odroid HC1、rock64 等其他板
|
||||
* 通过预装的 SAMBA 与 Windows/Mac/Linux 分享文件
|
||||
* 自动挂载 USB
|
||||
* 远程更新
|
||||
* 自动更新 NextCloudPi
|
||||
* 自动更新 NextcloudPi
|
||||
* 自动更新 NextCloud
|
||||
* 更新通知
|
||||
* NextCloud 备份和恢复
|
||||
@ -113,7 +113,7 @@ cd nextcloudpi
|
||||
./build-docker.sh arm64
|
||||
```
|
||||
|
||||
NextCloudPi 可以被安装在任何架构的最新版本 Debian 系统上
|
||||
NextcloudPi 可以被安装在任何架构的最新版本 Debian 系统上
|
||||
|
||||
```
|
||||
# curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
[English](/README.md) | Traditional Chinese 繁體中文 | [Simplified Chinese 简体中文](README-zh_CN.md)
|
||||
|
||||
|
||||
# NextCloudPi [](https://t.me/NextCloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
# NextcloudPi [](https://t.me/NextCloudPi) [](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N8PJHSEQF4G7Y&lc=US&item_name=Own%20Your%20Bits&item_number=NextCloudPi&no_note=1&no_shipping=1¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [](https://ownyourbits.com)
|
||||
|
||||
|
||||

|
||||
|
||||
歡迎來到 [NextCloudPi](https://nextcloudpi.com)!
|
||||
歡迎來到 [NextcloudPi](https://nextcloudpi.com)!
|
||||
|
||||
NextCloudPi 是專門為 Raspberry Pi、Odroid HC1、rock64 以及其它單板電腦所製作的映象檔。
|
||||
NextcloudPi 是專門為 Raspberry Pi、Odroid HC1、rock64 以及其它單板電腦所製作的映象檔。
|
||||
|
||||
為了方便使用者簡單地安裝 NextCloud 所製作。
|
||||
|
||||
@ -40,7 +40,7 @@ NextCloudPi 是專門為 Raspberry Pi、Odroid HC1、rock64 以及其它單板
|
||||
## 特別之處
|
||||
|
||||
* 首次安裝導覽頁面
|
||||
* NextCloudPi 網路 面板
|
||||
* NextcloudPi 網路 面板
|
||||
* 可使用 Wi-Fi
|
||||
* Ram logs
|
||||
* 自動安裝安全更新,且預設如此。
|
||||
@ -58,7 +58,7 @@ NextCloudPi 是專門為 Raspberry Pi、Odroid HC1、rock64 以及其它單板
|
||||
* SAMBA ready to share your files with Windows/Mac/Linux
|
||||
* USB 自動掛載
|
||||
* 遠端更新
|
||||
* 自動更新 NextCloudPi
|
||||
* 自動更新 NextcloudPi
|
||||
* 自動更新 Nextcloud
|
||||
* 更新通知
|
||||
* NextCloud 備份、復原備份
|
||||
@ -113,7 +113,7 @@ cd nextcloudpi
|
||||
./build-docker.sh arm64
|
||||
```
|
||||
|
||||
NextCloudPi 可以安裝在運行最新的 debian 的任何體系結構中
|
||||
NextcloudPi 可以安裝在運行最新的 debian 的任何體系結構中
|
||||
|
||||
```
|
||||
# curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# NextCloudPi installation script
|
||||
# NextcloudPi installation script
|
||||
#
|
||||
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
# GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -41,7 +41,7 @@ fi
|
||||
cd "${CODE_DIR}"
|
||||
|
||||
# install NCP
|
||||
echo -e "\nInstalling NextCloudPi..."
|
||||
echo -e "\nInstalling NextcloudPi..."
|
||||
source etc/library.sh
|
||||
|
||||
# check distro
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* NextCloudPi Web Panel style sheets. Based on official Nextcloud 12 datasheets
|
||||
/*
|
||||
* NextcloudPi Web Panel style sheets. Based on official Nextcloud 12 datasheets
|
||||
*
|
||||
* Copyleft 2018 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
* GPL licensed (see end of file) * Use at your own risk!
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
///
|
||||
// NextCloudPi Web Panel javascript library
|
||||
// NextcloudPi Web Panel javascript library
|
||||
//
|
||||
// Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
|
||||
// GPL licensed (see end of file) * Use at your own risk!
|
||||
@ -13,8 +13,8 @@ var selectedID = null;
|
||||
var confLock = false;
|
||||
|
||||
function errorMsg()
|
||||
{
|
||||
$('#error-box').fill( "Something went wrong. Try refreshing the page" );
|
||||
{
|
||||
$('#error-box').fill( "Something went wrong. Try refreshing the page" );
|
||||
}
|
||||
|
||||
function launch_nc_passwd()
|
||||
@ -31,20 +31,20 @@ function launch_nc_passwd()
|
||||
var ret = $.parseJSON( result );
|
||||
if ( ret.ret == '0' )
|
||||
{
|
||||
setTimeout( function(){
|
||||
setTimeout( function(){
|
||||
$('#loading-gif').hide();
|
||||
$('#error-box').fill( "ACTIVATION SUCCESSFUL" );
|
||||
$('#error-box').fill( "ACTIVATION SUCCESSFUL" );
|
||||
var url = window.location.protocol + '//' + window.location.hostname + ':4443';
|
||||
if ( !window.open( url, '_blank' ) ) // try to open in a new tab first
|
||||
window.location.replace( url );
|
||||
}, 4000 );
|
||||
} else {
|
||||
$('#error-box').fill( "nc-passwd error" );
|
||||
$('#error-box').fill( "nc-passwd error" );
|
||||
}
|
||||
} ).error( errorMsg );
|
||||
}
|
||||
|
||||
function nc_admin_ok_cb( result )
|
||||
function nc_admin_ok_cb( result )
|
||||
{
|
||||
var ret = $.parseJSON( result );
|
||||
if ( ret.token )
|
||||
@ -52,7 +52,7 @@ function nc_admin_ok_cb( result )
|
||||
if ( ret.ret == '0' ) {
|
||||
launch_nc_passwd();
|
||||
} else {
|
||||
$('#error-box').fill( "NextCloudPi not yet initialized, trying again in a few seconds ..." );
|
||||
$('#error-box').fill( "NextcloudPi not yet initialized, trying again in a few seconds ..." );
|
||||
setTimeout( launch_activation, 10000 );
|
||||
}
|
||||
}
|
||||
@ -61,15 +61,15 @@ function launch_activation()
|
||||
{
|
||||
// request
|
||||
$.request('post', '../ncp-launcher.php', { action: 'launch',
|
||||
ref : 'nc-admin',
|
||||
ref : 'nc-admin',
|
||||
config: '{ "PASSWORD":"' + $('#nc-pwd').get('.value') + '",'
|
||||
+ '"CONFIRM" :"' + $('#nc-pwd').get('.value') + '",'
|
||||
+ '"USER" : "ncp" }',
|
||||
csrf_token: $( '#csrf-token' ).get( '.value' ) }
|
||||
csrf_token: $( '#csrf-token' ).get( '.value' ) }
|
||||
).then( nc_admin_ok_cb ).error( errorMsg );
|
||||
}
|
||||
|
||||
$(function()
|
||||
$(function()
|
||||
{
|
||||
// print info page
|
||||
$( '#print-pwd' ).on( 'click', function(e) { window.print(); } );
|
||||
@ -96,7 +96,7 @@ $(function()
|
||||
input.selectionStart = input.selectionEnd;
|
||||
} );
|
||||
|
||||
// activate NextCloudPi
|
||||
// activate NextcloudPi
|
||||
$( '#activate-ncp' ).on( 'click', function(e)
|
||||
{
|
||||
$( '#activate-ncp' ).hide();
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title> NextCloudPi Activation </title>
|
||||
<title> NextcloudPi Activation </title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="referrer" content="never">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
||||
@ -29,13 +29,13 @@
|
||||
$nc_pwd = rtrim( base64_encode( random_bytes(32) ) , '=' ); // remove last '='. Remove rtrim in the future
|
||||
$ncp_pwd = rtrim( base64_encode( random_bytes(32) ) , '=' ); // remove last '='. Remove rtrim in the future
|
||||
echo <<<HTML
|
||||
<h1>NextCloudPi Activation</h1>
|
||||
<p>Your NextCloudPi user is </p><input readonly type="text" size=32 value="ncp">
|
||||
<p>Your NextCloudPi password is </p><input readonly id="ncp-pwd" type="text" size=32 value="{$ncp_pwd}"> <img id="cp-ncp" src="../img/clippy.svg"><span id="cp-ncp-ok"></span>
|
||||
<p>Save this password in order to access to the NextCloudPi web interface at https://nextcloudpi.local:4443</p>
|
||||
<h1>NextcloudPi Activation</h1>
|
||||
<p>Your NextcloudPi user is </p><input readonly type="text" size=32 value="ncp">
|
||||
<p>Your NextcloudPi password is </p><input readonly id="ncp-pwd" type="text" size=32 value="{$ncp_pwd}"> <img id="cp-ncp" src="../img/clippy.svg"><span id="cp-ncp-ok"></span>
|
||||
<p>Save this password in order to access to the NextcloudPi web interface at https://nextcloudpi.local:4443</p>
|
||||
<p>This password can be changed using 'nc-passwd'</p>
|
||||
<hr>
|
||||
<p>Your NextCloud user is </p><input readonly type="text" size=32 value="ncp">
|
||||
<p>Your Nextcloud user is </p><input readonly type="text" size=32 value="ncp">
|
||||
<p>Your Nextcloud password is </p><input readonly id="nc-pwd" type="text" size=32 value="{$nc_pwd}"> <img id="cp-nc" src="../img/clippy.svg"><span id="cp-nc-ok"></span>
|
||||
<p>Save this password in order to access NextCloud https://nextcloudpi.local</p>
|
||||
<p>This password can be changed from the Nextcloud user configuration</p>
|
||||
@ -55,7 +55,7 @@ HTML;
|
||||
</div>
|
||||
<footer role="contentinfo">
|
||||
<p class="info">
|
||||
<a href="https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/" target="_blank" rel="noreferrer noopener">NextCloudPi</a> – Keep your data close</p>
|
||||
<a href="https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/" target="_blank" rel="noreferrer noopener">NextcloudPi</a> – Keep your data close</p>
|
||||
</footer>
|
||||
<?php
|
||||
include('../csrf.php');
|
||||
|
||||
@ -2,13 +2,13 @@
|
||||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>nextcloudpi</id>
|
||||
<name>NextCloudPi</name>
|
||||
<name>NextcloudPi</name>
|
||||
<summary>Nextcloud management tools</summary>
|
||||
<description><![CDATA[NextCloudPi features a preconfigured Nextcloud instance and a complete set of tools around it for easy management.]]></description>
|
||||
<description><![CDATA[NextcloudPi features a preconfigured Nextcloud instance and a complete set of tools around it for easy management.]]></description>
|
||||
<version>0.0.1</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="nachoparker@ownyourbits.com" homepage="https://ownyourbits.com">nachoparker</author>
|
||||
<namespace>NextCloudPi</namespace>
|
||||
<namespace>NextcloudPi</namespace>
|
||||
<category>tools</category>
|
||||
<bugs>https://github.com/nextcloud/nextcloudpi/issues</bugs>
|
||||
<dependencies>
|
||||
@ -16,7 +16,7 @@
|
||||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<name>NextCloudPi</name>
|
||||
<name>NextcloudPi</name>
|
||||
<route>nextcloudpi.page.index</route>
|
||||
</navigation>
|
||||
</navigations>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Create your routes in here. The name is the lowercase name of the controller
|
||||
* without the controller part, the stuff after the hash is the method.
|
||||
* e.g. page#index -> OCA\NextCloudPi\Controller\PageController->index()
|
||||
* e.g. page#index -> OCA\NextcloudPi\Controller\PageController->index()
|
||||
*
|
||||
* The controller class has to be registered in the application.php file since
|
||||
* it's instantiated in there
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user