Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capitalization of NextcloudPi #1634

Draft
wants to merge 5 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ 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.

If there is an important security issue that has gone unnoticed, please send a private email to nacho _at_ ownyourbits.com

### 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

Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/3_Support_question.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ 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.

---
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`.
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/4_Documentation_issue.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/5_Security_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-lxd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-sd-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
English | [Traditional Chinese 繁體中文](i18n/README-zh_TW.md) | [Simplified Chinese 简体中文](i18n/README-zh_CN.md)

# NextCloudPi [![chatroom icon](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/NextCloudPi) [![forums icon](https://img.shields.io/badge/help-forums-blue.svg)](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](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&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [![blog](https://img.shields.io/badge/follow-blog-orange.svg)](https://ownyourbits.com)
# NextcloudPi [![chatroom icon](https://patrolavia.github.io/telegram-badge/chat.png)](https://t.me/NextcloudPi) [![forums icon](https://img.shields.io/badge/help-forums-blue.svg)](https://help.nextcloud.com/c/support/appliances-docker-snappy-vm) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](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&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) [![blog](https://img.shields.io/badge/follow-blog-orange.svg)](https://ownyourbits.com)


![NC Logo](https://ownyourbits.com/wp-content/uploads/2017/11/ncp-square.png)

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)

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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_

Expand Down
8 changes: 4 additions & 4 deletions bin/ncp-check-updates
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions bin/ncp-config
Original file line number Diff line number Diff line change
@@ -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!
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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[@]}" \
Expand Down
6 changes: 3 additions & 3 deletions bin/ncp-diag
Original file line number Diff line number Diff line change
@@ -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!
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bin/ncp-report
Original file line number Diff line number Diff line change
@@ -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!
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions bin/ncp-suggestions
Original file line number Diff line number Diff line change
@@ -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!
Expand All @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions bin/ncp-update
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# update latest NextCloudPi code from github
# update latest NextcloudPi code from github

[[ -z "$DBG" ]] || set -$DBG

Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions bin/ncp-update-nc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ wget -q "$URL" -O nextcloud.tar.bz2 || { echo "Error downloading"; exit 1; }

# backup
####################
BKPDIR=/var/www/
BKPDIR="$BASEDIR"
WITH_DATA=no
COMPRESSED=yes
LIMIT=0
Expand Down Expand Up @@ -165,7 +165,7 @@ rollback() {
rm -rf /var/www/nextcloud.tar.bz2 "$BASEDIR"/nextcloud-old
echo "Rolling back to backup $BKP..."
local TMPDATA
TMPDATA="$( mktemp -d "/var/www/ncp-data.XXXXXX" )" || { echo "Failed to create temp dir" >&2; exit 1; }
TMPDATA="$( mktemp -d "$BASEDIR/recovery/ncp-data.XXXXXX" )" || { echo "Failed to create temp dir" >&2; exit 1; }
[[ "$DATADIR" == "$BASEDIR/nextcloud/data" ]] && mv -T "$DATADIR" "$TMPDATA"
ncp-restore "$BKP" || { echo "Rollback failed! Data left at $TMPDATA"; exit 1; }
[[ "$DATADIR" == "$BASEDIR/nextcloud/data" ]] && { rm -rf "$DATADIR"; mv -T "$TMPDATA" "$DATADIR"; }
Expand Down
4 changes: 2 additions & 2 deletions bin/ncp/BACKUPS/nc-export-ncp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Export NextCloudPi configuration
# Export NextcloudPi configuration
#
#
# Copyleft 2017 by Courtney Hicks
Expand All @@ -9,7 +9,7 @@



configure()
configure()
{
[[ -d "$DIR" ]] || { echo "directory $DIR does not exist"; return 1; }

Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-import-ncp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Import NextCloudPi configuration
# Import NextcloudPi configuration
#
#
# Copyleft 2017 by Courtney Hicks
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-snapshot-auto.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-database.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-datadir.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-httpsonly.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-limits.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-trusted-domains.sh
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
Loading