mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
add website URL to scritps
This commit is contained in:
parent
3761183980
commit
5b93e9afab
@ -11,6 +11,7 @@
|
||||
# ./installer.sh dnsmasq.sh <IP> (<img>)
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
# More at: https://ownyourbits.com/2017/03/09/dnsmasq-as-dns-cache-server-for-nextcloudpi-and-raspbian/
|
||||
#
|
||||
|
||||
DOMAIN_=mycloud.ownyourbits.com
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
# ./installer.sh fail2ban.sh <IP> (<img>)
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
# More at: https://ownyourbits.com/2017/02/24/nextcloudpi-fail2ban-installer/
|
||||
#
|
||||
|
||||
# location of Nextcloud logs
|
||||
|
||||
@ -11,6 +11,9 @@
|
||||
#
|
||||
# Notes:
|
||||
# Set DOWNLOAD=0 if you have already downloaded an image. Rename it to nextcloudpi.img
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
|
||||
#
|
||||
|
||||
IP=$1 # First argument is the QEMU Raspbian IP address
|
||||
IMGFILE=$2 # Second argument is the name for the output image
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
# Use any script that would run locally on the image
|
||||
# Use the IP of your running QEMU Raspbian image (DHCP should assign always the same)
|
||||
#
|
||||
# More at: https://ownyourbits.com/2017/03/05/generic-software-installer-for-raspbian/
|
||||
#
|
||||
|
||||
INSTALL_SCRIPT=$1 # First argument is the script to be run inside Raspbian
|
||||
IP=$2 # Second argument is the QEMU Raspbian IP address
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/03/17/lets-encrypt-installer-for-apache/
|
||||
|
||||
DOMAIN_=mycloud.ownyourbits.com
|
||||
EMAIL_=mycloud@ownyourbits.com
|
||||
@ -34,7 +35,7 @@ configure()
|
||||
sed -i "s|ServerName .*|ServerName $DOMAIN_|" $VHOSTCFG_ || \
|
||||
sed -i "/DocumentRoot/aServerName $DOMAIN_" $VHOSTCFG_
|
||||
|
||||
/etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --agree-tos -m $EMAIL_ -d $DOMAIN_
|
||||
/etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_
|
||||
echo "* 1 * * 1 root /etc/letsencrypt/certbot-auto renew --quiet" > /etc/cron.d/letsencrypt-ncp
|
||||
service apache2 reload
|
||||
}
|
||||
|
||||
@ -4,6 +4,9 @@
|
||||
#
|
||||
# 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!
|
||||
#
|
||||
# More at ownyourbits.com
|
||||
#
|
||||
|
||||
|
||||
IMGNAME=$( basename $IMGFILE .img )_$( basename $INSTALL_SCRIPT .sh ).img
|
||||
|
||||
@ -12,6 +12,8 @@
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/03/13/nextcloudpi-gets-nextcloudpi-config/
|
||||
#
|
||||
|
||||
DATADIR_=/media/USBdrive/ncdata
|
||||
DESCRIPTION="Change your data dir location"
|
||||
|
||||
@ -12,6 +12,8 @@
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/03/13/nextcloudpi-gets-nextcloudpi-config/
|
||||
#
|
||||
|
||||
DESCRIPTION="Configure system limits for NextCloudPi"
|
||||
MAXFILESIZE_=768M
|
||||
|
||||
24
nextcloud.sh
24
nextcloud.sh
@ -16,6 +16,9 @@
|
||||
# Upon each necessary restart, the system will cut the SSH session, therefore
|
||||
# it is required to save the state of the installation. See variable $STATE_FILE
|
||||
# It will be necessary to invoke this a number of times for a complete installation
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
|
||||
#
|
||||
|
||||
VER=11.0.1
|
||||
ADMINUSER_=admin
|
||||
@ -26,6 +29,7 @@ MAXTRANSFERTIME_=3600
|
||||
OPCACHEDIR=/var/www/nextcloud/data/.opcache
|
||||
CONFDIR=/usr/local/etc/nextcloudpi-config.d/
|
||||
STATE_FILE=/home/pi/.installation_state
|
||||
APTINSTALL="apt-get install -y --no-install-recommends"
|
||||
|
||||
|
||||
install()
|
||||
@ -48,9 +52,9 @@ elif [ "$STATE" == "0" ]; then
|
||||
resize2fs /dev/sda2
|
||||
|
||||
apt-get update
|
||||
apt-get upgrade -y
|
||||
apt-get dist-upgrade -y
|
||||
apt-get install rpi-update -y
|
||||
apt-get upgrade
|
||||
apt-get dist-upgrade
|
||||
$APTINSTALL rpi-update
|
||||
echo -e "y\n" | rpi-update
|
||||
|
||||
echo 1 > $STATE_FILE
|
||||
@ -71,14 +75,14 @@ EOF
|
||||
# INSTALL FROM STRETCH
|
||||
##########################################
|
||||
|
||||
apt-get install -t stretch apache2 -y
|
||||
apt-get install -t stretch php7.0 php7.0-curl php7.0-gd php7.0-fpm php7.0-cli php7.0-opcache php7.0-mbstring php7.0-xml php7.0-zip -y
|
||||
apt-get install php7.0-APC -y
|
||||
apt-get install libxml2-dev php-zip php-dom php-xmlwriter php-xmlreader php-gd php-curl php-mbstring -y
|
||||
$APTINSTALL -t stretch apache2
|
||||
$APTINSTALL -t stretch php7.0 php7.0-curl php7.0-gd php7.0-fpm php7.0-cli php7.0-opcache php7.0-mbstring php7.0-xml php7.0-zip
|
||||
$APTINSTALL php7.0-APC
|
||||
$APTINSTALL libxml2-dev php-zip php-dom php-xmlwriter php-xmlreader php-gd php-curl php-mbstring
|
||||
|
||||
debconf-set-selections <<< "mariadb-server-5.5 mysql-server/root_password password $DBPASSWD_"
|
||||
debconf-set-selections <<< "mariadb-server-5.5 mysql-server/root_password_again password $DBPASSWD_"
|
||||
apt-get install mariadb-server php7.0-mysql -y
|
||||
$APTINSTALL mariadb-server php7.0-mysql
|
||||
|
||||
# CONFIGURE APACHE AND PHP7
|
||||
##########################################
|
||||
@ -224,7 +228,7 @@ EXIT
|
||||
EOF
|
||||
|
||||
# NEXTCLOUDPI-CONFIG
|
||||
apt-get install -y dialog
|
||||
$APTINSTALL dialog
|
||||
mkdir -p $CONFDIR
|
||||
fi
|
||||
}
|
||||
@ -280,7 +284,7 @@ EOF
|
||||
cleanup()
|
||||
{
|
||||
[ "$STATE" != "2" ] && return
|
||||
apt-get autoremove -y
|
||||
apt-get autoremove
|
||||
apt-get clean
|
||||
rm /var/lib/apt/lists/* -r
|
||||
rm -f /home/pi/.bash_history
|
||||
|
||||
@ -9,6 +9,8 @@
|
||||
# Usage:
|
||||
# sudo nextcloudpi-config
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/03/13/nextcloudpi-gets-nextcloudpi-config/
|
||||
#
|
||||
|
||||
CONFDIR=/usr/local/etc/nextcloudpi-config.d/
|
||||
|
||||
|
||||
2
no-ip.sh
2
no-ip.sh
@ -12,6 +12,8 @@
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
#
|
||||
# More at https://ownyourbits.com/2017/03/05/dynamic-dns-for-raspbian-with-no-ip-org-installer/
|
||||
#
|
||||
|
||||
USER_=my-noip-user@email.com
|
||||
PASS_=noip-pass
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
# ./installer.sh unattended-upgrades.sh <IP> (<img>)
|
||||
#
|
||||
# See installer.sh instructions for details
|
||||
# More at: ownyourbits.com
|
||||
#
|
||||
|
||||
ACTIVE_=yes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user