diff --git a/source/resources/apps/nextcloud/forksand-nextcloud-setup b/source/resources/apps/nextcloud/forksand-nextcloud-setup index c353bb9..4560d5a 100755 --- a/source/resources/apps/nextcloud/forksand-nextcloud-setup +++ b/source/resources/apps/nextcloud/forksand-nextcloud-setup @@ -139,3 +139,10 @@ apt-get -y install pbzip2 # Backup DB: + +# Crontab, as root +crontab -u www-data -e +# Add the lines: +*/15 * * * * php -f /var/www/html/nextcloud/cron.php +*/15 * * * * /var/www/html/nextcloud/occ preview:pre-generate + diff --git a/source/resources/apps/redis/forksand-redis-setup b/source/resources/apps/redis/forksand-redis-setup new file mode 100755 index 0000000..bc61067 --- /dev/null +++ b/source/resources/apps/redis/forksand-redis-setup @@ -0,0 +1,52 @@ +#!/bin/bash + +exit 0 + +# Set up Redis +apt-get install -t stretch-backports redis redis-sentinel + +# XXX +# probably IPv6 ? +Setting up redis-sentinel (5:4.0.10-1~bpo9+1) ... +Created symlink /etc/systemd/system/sentinel.service → /lib/systemd/system/redis-sentinel.service. +Created symlink /etc/systemd/system/multi-user.target.wants/redis-sentinel.service → /lib/systemd/system/redis-sentinel.service. +Setting up redis-server (5:4.0.10-1~bpo9+1) ... +Job for redis-server.service failed because of unavailable resources or another system error. +See "systemctl status redis-server.service" and "journalctl -xe" for details. +invoke-rc.d: initscript redis-server, action "start" failed. +● redis-server.service - Advanced key-value store + Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled) + Active: activating (auto-restart) (Result: resources) since Sat 2018-07-14 13:50:33 MDT; 6ms ago + Docs: http://redis.io/documentation, + man:redis-server(1) + Process: 1018 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS) + +Jul 14 13:50:33 redis3 systemd[1]: Failed to start Advanced key-value store. +Jul 14 13:50:33 redis3 systemd[1]: redis-server.service: Unit entered faile…ate. +Jul 14 13:50:33 redis3 systemd[1]: redis-server.service: Failed with result…es +Hint: Some lines were ellipsized, use -l to show in full. +dpkg: error processing package redis-server (--configure): + subprocess installed post-installation script returned error exit status 1 +dpkg: dependency problems prevent configuration of redis: + redis depends on redis-server (<< 5:4.0.10-1~bpo9+1.1~); however: + Package redis-server is not configured yet. + redis depends on redis-server (>= 5:4.0.10-1~bpo9+1); however: + Package redis-server is not configured yet. + +dpkg: error processing package redis (--configure): + dependency problems - leaving unconfigured +Processing triggers for systemd (232-25+deb9u4) ... +Errors were encountered while processing: + redis-server + redis +E: Sub-process /usr/bin/dpkg returned an error code (1) + +# XXX + +cd /etc ; git add . ; git commit -a -m "Install redis" + +vim /etc/redis/redis.conf +# Disable IPv6 +-bind 127.0.0.1 ::1 ++bind 127.0.0.1 + diff --git a/source/resources/apps/sharkfork-bootstrap/forksand-sf-generic-bootstrap b/source/resources/apps/sharkfork-bootstrap/forksand-sf-generic-bootstrap index 0bb2d41..718b1a4 100755 --- a/source/resources/apps/sharkfork-bootstrap/forksand-sf-generic-bootstrap +++ b/source/resources/apps/sharkfork-bootstrap/forksand-sf-generic-bootstrap @@ -149,6 +149,7 @@ apt-get -y --download-only install \ debian-archive-keyring \ exuberant-ctags \ git \ + haveged \ host \ less \ locales \ @@ -180,6 +181,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y \ debian-archive-keyring \ exuberant-ctags \ git \ + haveged \ host \ less \ locales \ diff --git a/source/resources/apps/sharkfork-bootstrap/forksand-sf-redis-bootstrap b/source/resources/apps/sharkfork-bootstrap/forksand-sf-redis-bootstrap index acd7d55..935c1f9 100755 --- a/source/resources/apps/sharkfork-bootstrap/forksand-sf-redis-bootstrap +++ b/source/resources/apps/sharkfork-bootstrap/forksand-sf-redis-bootstrap @@ -76,6 +76,8 @@ cat > /etc/iptables.test.rules <