Commit Graph

185 Commits

Author SHA1 Message Date
rieger::CLOUD
765f6f69e5 ARM64 only
v. 1.0
2018-10-05 17:43:38 +02:00
rieger::CLOUD
b34395c63b Delete install-nextcloud-odroidc2.sh 2018-10-05 16:07:24 +02:00
rieger::CLOUD
065a0aad95 OdroidC2-ARM64 2018-10-05 14:33:35 +02:00
rieger::CLOUD
048a20899a AMD64 only 2018-10-05 14:30:49 +02:00
rieger::CLOUD
55c2d7d559 Ready for ARM64
###Nextcloud occ db:... (maintenance/optimization)
/usr/sbin/service nginx stop
clear
echo "---------------------------------"
echo "Issue Nextcloud-DB optimizations!"
echo "---------------------------------"
echo "Press 'y' to issue optimizations."
echo "---------------------------------"
echo ""
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
sudo -u www-data php /var/www/nextcloud/occ db:convert-filecache-bigint
/usr/sbin/service nginx start
2018-10-05 13:10:57 +02:00
rieger::CLOUD
b30c30bf7a Optimizations
Preparred for ARM64 and DB optimization were added
2018-10-05 13:02:08 +02:00
rieger::CLOUD
c52a5555eb Cosmetical changes
DB Jobs
2018-10-05 12:59:58 +02:00
rieger::CLOUD
204aec75b1 Nextcloud DB optimizations
echo " Run DB optimizations twice:"
echo ""
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
sudo -u www-data php /var/www/nextcloud/occ db:convert-filecache-bigint
sudo -u www-data php /var/www/nextcloud/occ db:convert-filecache-bigint
/usr/sbin/service nginx start
2018-10-05 12:03:07 +02:00
rieger::CLOUD
7f804b2943 Updated the version series
Version Series
2018-10-05 11:54:53 +02:00
rieger::CLOUD
d9c9d6f0f6 ARM64 compatible
Made the script compatible for both: AMD64 and ARM64 yet
2018-10-05 11:51:24 +02:00
rieger::CLOUD
1f5639e87b initial install script
Updated to NGINX 1.15.5
2018-10-02 20:15:22 +02:00
rieger::CLOUD
3c78e8ea9e install script
Updated to NGINX 1.15.5
2018-10-02 20:13:11 +02:00
rieger::CLOUD
fed4518232 Installscript
Nextcloud 14 latest, NGINX 1.15.4, OpenSSL 1.1.1 using TLS v.13, PHP 7.2.10, MariaDB, Redis
2018-10-02 09:31:37 +02:00
rieger::CLOUD
2b9c6cf8a3 Merge pull request #33 from riegercloud/Nextcloud-TLSv1.3
Nextcloud ready for TLS v1.3
2018-10-02 09:00:48 +02:00
rieger::CLOUD
9deb6f26e0 Rules
NGINX rules file for compilation purposes
2018-10-02 08:58:47 +02:00
rieger::CLOUD
baf7db734f Installscript
Ready for NGINX 1.15.4 using OpenSSL 1.1.1 and TLSv1.3
2018-10-02 08:57:59 +02:00
rieger::CLOUD
79b26930f5 Nextcloud latest using TLS 1.3 and OpenSSL 1.1.1
Nextcloud latest using TLS 1.3 and OpenSSL 1.1.1
2018-10-02 08:54:01 +02:00
rieger::CLOUD
e8aa24c49a NGINX RULES
cosmeticals
2018-10-02 08:40:31 +02:00
rieger::CLOUD
88b4fd30ea Compile NGINX using OpenSSL 1.1.1
The script will compile NGINX from scratch to embed OpenSSL 1.1.1 and enable TLSv.13
2018-10-02 08:17:41 +02:00
rieger::CLOUD
9c89c47dc6 Preparation for NGINX
modifications made to the rules file
2018-10-02 08:15:32 +02:00
rieger::CLOUD
15f1433454 More flexible and beyond that
mariadbinfo
2018-09-21 13:41:11 +02:00
rieger::CLOUD
2ad79d61e5 More flexible and beyond that
wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
2018-09-21 13:34:05 +02:00
rieger::CLOUD
14982d2d30 /usr/local/src/install-nextcloud/*.sh
Beyond that you will find additional scripts at /usr/local/src/install-nextcloud/

    fail2ban.sh
    optimize.sh
    restart.sh
    ssl-renewal.sh

to optimize and maintain your system easily.
2018-09-20 22:09:19 +02:00
rieger::CLOUD
e205d47e40 Additional scripts were added
/usr/local/src/install-nextcloud/*.sh
2018-09-20 21:53:04 +02:00
rieger::CLOUD
719621ec49 renew your letsencrypt ssl certificates weekly
issue: /usr/local/src/install-nextcloud/ssl-renewal.sh
2018-09-20 21:51:27 +02:00
rieger::CLOUD
d9502ba330 restart all services related to your Nextcloud instance
issue: /usr/local/src/install-nextcloud/restart.sh
2018-09-20 21:50:16 +02:00
rieger::CLOUD
5a88b00c55 Optimize your Nextcloud instance
issue: /usr/local/src/install-nextcloud/optimize.sh
2018-09-20 21:48:46 +02:00
rieger::CLOUD
04dfaffc2d Staus quo: Fail2Ban
issue: /usr/local/src/install-nextcloud/fail2ban.sh
2018-09-20 21:47:00 +02:00
rieger::CLOUD
e0320ea960 Staus quo: Fail2Ban
issue: /usr/local/src/install-nextcloud/fail2ban.sh)
2018-09-20 21:46:19 +02:00
rieger::CLOUD
4264612ccf Staus quo: Fail2Ban (e.g.: /root/fail2ban.sh)
fail2ban-client status nextcloud && fail2ban-client status nginx-http-auth && fail2ban-client status sshd
2018-09-20 21:41:25 +02:00
rieger::CLOUD
4e32a24f4b renew your letsencrypt ssl certificates weekly
letsencrypt renew
2018-09-20 21:33:30 +02:00
rieger::CLOUD
5e5b664f4f Optimize your Nextcloud instance
edis-cli -s /var/run/redis/redis-server.sock <<EOF
FLUSHALL
quit
EOF
sudo -u www-data php /var/www/nextcloud/occ files:scan --all
sudo -u www-data php /var/www/nextcloud/occ files:scan-app-data
2018-09-20 21:27:06 +02:00
rieger::CLOUD
a395e5c429 Restart all services related to your Nextcloud instance
/usr/sbin/service nginx stop
/usr/sbin/service mysql restart
/usr/sbin/service redis-server restart
/usr/sbin/service php7.2-fpm restart
/usr/sbin/service nginx restart
2018-09-20 21:26:24 +02:00
rieger::CLOUD
971557378f crontab -e
5 1 * * * /root/optimize.sh > /dev/null 2>&1
2018-09-20 21:23:36 +02:00
rieger::CLOUD
c9251feded Optimization for your Nextcloud instance
Initial script
2018-09-20 21:22:27 +02:00
rieger::CLOUD
32339aa43e More Flexible
sudo -u www-data php /var/www/nextcloud/occ config:system:set trusted_domains 1 --value=$DYNDNSNAME
sudo -u www-data php /var/www/nextcloud/occ config:system:set overwrite.cli.url --value=https://$DYNDNSNAME
2018-09-20 20:58:10 +02:00
rieger::CLOUD
ac33964f09 More Flexible
new: sudo -u www-data php /var/www/nextcloud/occ config:system:set overwrite.cli.url --value=https://$DYNDNSNAME
old: sudo -u www-data sed -in 's/'$YOURSERVERNAME'/'$DYNDNSNAME'/' /var/www/nextcloud/config/config.php
2018-09-20 20:55:29 +02:00
rieger::CLOUD
f787109d0c More flexible
You will be asked for the database name either.
At least the overwrite url is set by occ command.
2018-09-20 20:51:05 +02:00
rieger::CLOUD
e13862517a changed nextcloud db
change nextcloud database to ncdb database
2018-09-20 20:03:10 +02:00
rieger::CLOUD
52243362cd PHP Update
Updated to PHP 7.2.10
2018-09-20 11:57:40 +02:00
rieger::CLOUD
91eea4af9f Cosmetical one
echo "***********************************************************"
echo "You will be asked to set the MariaDB root password 3 times."
echo ""
echo "Please just confirm the dialogue (ENTER)."
echo ""
echo "You will be asked again to set the root pwd"
echo "while harden your MariaDB Server!"
echo "*********************************************************"
2018-09-20 11:52:17 +02:00
rieger::CLOUD
f2d56e36f7 Updated repos once again
mv /etc/apt/sources.list /etc/apt/sources.list.bak && touch /etc/apt/sources.list
cat <<EOF >>/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb [arch=amd64] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.3/ubuntu bionic main
EOF
2018-09-20 11:43:27 +02:00
rieger::CLOUD
20d9096cd3 missed one file
touch /etc/apt/sources.list
2018-09-20 11:36:27 +02:00
rieger::CLOUD
15d8c5d4fc updates to the repositories
made different changes to all the repos (/etc/apt/sources.list)
2018-09-20 11:01:01 +02:00
rieger::CLOUD
440c39a88f Changed two mountpoints
# sed -i '$atmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777 0 0' /etc/fstab
# sed -i '$atmpfs /var/tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777 0 0' /etc/fstab
2018-09-11 10:29:12 +02:00
rieger::CLOUD
700390b72d no longer maintained
failure/broken
2018-09-06 12:49:32 +02:00
rieger::CLOUD
0bbc75d324 Nextcloud 14
Nextcloud 14 was released
2018-09-06 12:46:22 +02:00
rieger::CLOUD
ad3e1645ef Nextcloud 14
Nextcloud 14 released today!
2018-09-06 12:44:36 +02:00
rieger::CLOUD
a94467558c Nextcloud update failed
Caused by /var/www/nextcloud.user.ini.bak the update interrupted. The file was moved to /usr/local/src.
2018-08-31 15:38:20 +02:00
rieger::CLOUD
9bfb4e3023 Nextcloud Update failed
Caused by /var/www/nextcloud.user.ini.bak the update interrupted. The file was moved to /usr/local/src.
2018-08-31 15:37:50 +02:00