From 75b42680feb34185107c6ebeae6162ec26f07f48 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 29 Mar 2017 18:33:55 +0200 Subject: ncp updates and motd. structure directories --- etc/library.sh | 276 ++++++++++++++++++++++++ etc/ncp-ascii.txt | 30 +++ etc/nextcloudpi-config.d/dnsmasq.sh | 78 +++++++ etc/nextcloudpi-config.d/fail2ban.sh | 144 +++++++++++++ etc/nextcloudpi-config.d/letsencrypt.sh | 68 ++++++ etc/nextcloudpi-config.d/modsecurity.sh | 122 +++++++++++ etc/nextcloudpi-config.d/nc-datadir.sh | 68 ++++++ etc/nextcloudpi-config.d/nc-httpsonly.sh | 47 ++++ etc/nextcloudpi-config.d/nc-limits.sh | 47 ++++ etc/nextcloudpi-config.d/nc-update.sh | 44 ++++ etc/nextcloudpi-config.d/no-ip.sh | 85 ++++++++ etc/nextcloudpi-config.d/unattended-upgrades.sh | 66 ++++++ 12 files changed, 1075 insertions(+) create mode 100755 etc/library.sh create mode 100644 etc/ncp-ascii.txt create mode 100755 etc/nextcloudpi-config.d/dnsmasq.sh create mode 100755 etc/nextcloudpi-config.d/fail2ban.sh create mode 100755 etc/nextcloudpi-config.d/letsencrypt.sh create mode 100755 etc/nextcloudpi-config.d/modsecurity.sh create mode 100755 etc/nextcloudpi-config.d/nc-datadir.sh create mode 100755 etc/nextcloudpi-config.d/nc-httpsonly.sh create mode 100755 etc/nextcloudpi-config.d/nc-limits.sh create mode 100755 etc/nextcloudpi-config.d/nc-update.sh create mode 100755 etc/nextcloudpi-config.d/no-ip.sh create mode 100755 etc/nextcloudpi-config.d/unattended-upgrades.sh (limited to 'etc') diff --git a/etc/library.sh b/etc/library.sh new file mode 100755 index 00000000..a9a4bc94 --- /dev/null +++ b/etc/library.sh @@ -0,0 +1,276 @@ +#!/bin/bash + +# Library to install software on Raspbian ARM through QEMU +# +# Copyleft 2017 by Ignacio Nunez Hernanz +# GPL licensed (see end of file) * Use at your own risk! +# +# More at ownyourbits.com +# + + +IMGNAME=$( basename $IMGFILE .img )_$( basename $INSTALL_SCRIPT .sh ).img +CFGOUT=config_$( basename $INSTALL_SCRIPT .sh ).txt +DBG=x + +# $IMGOUT will contain the name of the last step +function launch_install_qemu() +{ + local IMG=$1 + local IP=$2 + [[ "$IP" == "" ]] && { echo "usage: launch_install_qemu