silence output of download and untar in nc-nextcloud.sh

This commit is contained in:
nachoparker 2017-06-13 10:09:09 +02:00
parent c7cf262232
commit 7356998238
3 changed files with 20 additions and 2 deletions

View File

@ -21,6 +21,15 @@ DNSSERVER_=8.8.8.8
CACHESIZE_=150
DESCRIPTION="DNS server with cache"
show_info()
{
whiptail --yesno \
--backtitle "NextCloudPi configuration" \
--title "Info" \
"Remember to point your PC and devices DNS to your Raspberry Pi IP" \
20 90
}
install()
{
apt-get update

View File

@ -44,9 +44,9 @@ configure()
{
## DOWNLOAD AND (OVER)WRITE NEXTCLOUD
cd /var/www/
wget https://download.nextcloud.com/server/releases/nextcloud-$VER_.tar.bz2 -O nextcloud.tar.bz2
wget -q https://download.nextcloud.com/server/releases/nextcloud-$VER_.tar.bz2 -O nextcloud.tar.bz2
rm -rf nextcloud
tar -xvf nextcloud.tar.bz2
tar -xf nextcloud.tar.bz2
rm nextcloud.tar.bz2
## CONFIGURE FILE PERMISSIONS

View File

@ -22,6 +22,15 @@ DOMAIN_=mycloud.ownyourbits.com
TIME_=30
DESCRIPTION="Free Dynamic DNS provider (need account)"
show_info()
{
whiptail --yesno \
--backtitle "NextCloudPi configuration" \
--title "Info" \
"For this step to succeed, you need to register a noip account first." \
20 90
}
install()
{
mkdir /tmp/noip && cd /tmp/noip