diff options
Diffstat (limited to 'build-SD-rpi.sh')
-rwxr-xr-x | build-SD-rpi.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/build-SD-rpi.sh b/build-SD-rpi.sh index 8d88f4f5..5a37f04b 100755 --- a/build-SD-rpi.sh +++ b/build-SD-rpi.sh @@ -34,7 +34,7 @@ rm -f ncp-web/{wizard.cfg,ncp-web.cfg} echo -e "\e[1m\n[ Build NCP ]\e[0m" prepare_chroot_raspbian "$IMG" -mkdir raspbian_root/tmp/ncp-build +mkdir raspbian_root/tmp/ncp-build raspbian_root/usr/local/etc/ncp-config.d cp -r *.sh etc bin ncp-web raspbian_root/tmp/ncp-build PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ @@ -57,12 +57,13 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ # install everything cd /tmp/ncp-build || exit 1 source etc/library.sh - install_app lamp.sh - install_app etc/ncp-config.d/nc-nextcloud.sh - run_app etc/ncp-config.d/nc-nextcloud.sh - install_app ncp.sh - run_app etc/ncp-config.d/nc-init.sh - run_app post-inst.sh + cp etc/ncp-config.d/nc-nextcloud.cfg /usr/local/etc/ncp-config.d/ + install_app lamp.sh + install_app bin/ncp/CONFIG/nc-nextcloud.sh + run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh + install_app ncp.sh + run_app_unsafe bin/ncp/CONFIG/nc-init.sh + run_app_unsafe post-inst.sh # harden SSH further for Raspbian sed -i 's|^#PermitRootLogin .*|PermitRootLogin no|' /etc/ssh/sshd_config |