-
-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b94bcb4
commit fa1ec75
Showing
10 changed files
with
282 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# 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! | ||
# | ||
# Usage: | ||
# sudo ncp-suggestions "$( ncp-diag )" | ||
# | ||
# More at https://ownyourbits.com | ||
# | ||
|
||
OUT="$@" | ||
|
||
DNSMASQ_ON="$( grep "^ACTIVE_=" /usr/local/etc/nextcloudpi-config.d/dnsmasq.sh | cut -d'=' -f2 )" | ||
|
||
grep -q "distribution|.*bian GNU/Linux 9" <<<"$OUT" || \ | ||
echo -e "You are using an unsupported distro release. Please upgrade to latest Debian/Raspbian" | ||
|
||
[[ $DNSMASQ_ON != "yes" ]] && \ | ||
grep -q "NAT loopback|no" <<<"$OUT" && \ | ||
echo -e "\nYou should enable dnsmasq to use your domain inside home" | ||
|
||
grep -q "certificates|none" <<<"$OUT" && \ | ||
echo -e "\nYou should run Lets Encrypt for trusted encrypted access" | ||
|
||
grep -q "port check .*|closed" <<<"$OUT" && \ | ||
echo -e "\nYou should open your ports for Lets Encrypt and external access" | ||
|
||
grep -q "USB devices|none" <<<"$OUT" || { | ||
grep -q "data in SD|yes" <<<"$OUT" && \ | ||
echo -e "\nYou should use nc-datadir to move your files to your plugged in USB drive" | ||
|
||
grep -q "automount|no" <<<"$OUT" && \ | ||
echo -e "\nYou should enable automount to use your plugged in USB drive" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.