File tree Expand file tree Collapse file tree 7 files changed +14
-12
lines changed Expand file tree Collapse file tree 7 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ source buildlib.sh # initializes $IMGNAME
26
26
27
27
# Armbian
28
28
./build-SD-armbian.sh odroidxu4 OdroidHC2
29
- ./build-SD-armbian.sh rock64
30
- ./build-SD-armbian.sh bananapi
29
+ ./build-SD-armbian.sh rock64 Rock64
30
+ ./build-SD-armbian.sh bananapi Bananapi
31
31
32
32
# Docker x86
33
33
docker pull debian:stretch-slim
Original file line number Diff line number Diff line change 11
11
set -e
12
12
source buildlib.sh
13
13
14
- IP=${1:- 192.168.0.145} # For QEMU automated testing
14
+ IP=${1:- 192.168.0.145} # For QEMU automated testing (optional)
15
15
SIZE=3G # Raspbian image size
16
16
# CLEAN=1 # Pass this envvar to clean download cache
17
17
IMG=" NextCloudPi_RPi_$( date " +%m-%d-%y" ) .img"
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ ExecStart=/bin/bash /usr/local/bin/ncp-provisioning.sh
94
94
[Install]
95
95
WantedBy=multi-user.target
96
96
EOF
97
+ systemctl enable nc-provisioning
97
98
return 0
98
99
}
99
100
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ grep -q -e "Debian GNU/Linux 9" -e "Raspbian GNU/Linux 9" /etc/issue || {
29
29
}
30
30
31
31
# check installed software
32
- type apache2 & > /dev/null && APACHE_EXISTS=1
33
32
type mysqld & > /dev/null && echo " >>> WARNING: existing mysqld configuration will be changed <<<"
34
33
35
34
# get install code
@@ -52,10 +51,7 @@ install_script etc/ncp-config.d/nc-nextcloud.sh
52
51
activate_script etc/ncp-config.d/nc-nextcloud.sh
53
52
install_script ncp.sh
54
53
activate_script etc/ncp-config.d/nc-init.sh
55
-
56
- # re-enable mods disabled during install, in case there's other shared services in apache2
57
- [[ " $APACHE_EXISTS " != " " ]] && \
58
- a2enmod status reqtimeout env autoindex access_compat auth_basic authn_file authn_core alias access_compat
54
+ [[ -f /.ncp-image ]] && activate_script post-inst.sh
59
55
60
56
popd
61
57
echo " Done.
Original file line number Diff line number Diff line change 106
106
a2enmod mime
107
107
a2enmod ssl
108
108
109
- a2dismod -f status reqtimeout env autoindex access_compat auth_basic authn_file authn_core alias access_compat
110
109
echo " ServerName localhost" >> /etc/apache2/apache2.conf
111
110
112
111
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Cleanup step Raspbian image
3
+ # Cleanup step NCP image
4
4
#
5
5
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
6
6
# GPL licensed (see end of file) * Use at your own risk!
@@ -15,8 +15,8 @@ configure()
15
15
kill $( cat /run/redis/redis-server.pid )
16
16
kill $( cat /run/crond.pid )
17
17
18
- # enable randomize passwords
19
- systemctl enable nc-provisioning
18
+ # disable unused apache mods
19
+ a2dismod status reqtimeout env autoindex access_compat auth_basic authn_file authn_core alias access_compat
20
20
21
21
# cleanup all NCP extras
22
22
source /usr/local/etc/library.sh
Original file line number Diff line number Diff line change @@ -232,6 +232,12 @@ done
232
232
sed -i ' s|NextCloudPlus autogenerated|NextCloudPi autogenerated|' /etc/dhcpcd.conf
233
233
sed -i ' s|NextCloudPlus|NextCloudPi|' /etc/fail2ban/action.d/sendmail-whois-lines.conf
234
234
235
+ # make sure provisioning is enabled
236
+ systemctl -q is-enabled nc-provisioning || {
237
+ systemctl start nc-provisioning
238
+ systemctl enable nc-provisioning
239
+ }
240
+
235
241
} # end - only live updates
236
242
237
243
exit 0
You can’t perform that action at this time.
0 commit comments