diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-19 06:40:39 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-19 06:40:39 +0300 |
commit | d50b16e22be3bc784cbb4a4f570eddad5b29f723 (patch) | |
tree | f09926f2d6525125366e3f025a81bb9c5711b03f | |
parent | 865ad0836b6eb864fc19c3e6af896b10ff873b3b (diff) |
build: post-inst in install step
-rwxr-xr-x | build-SD-rpi.sh | 2 | ||||
-rw-r--r-- | install.sh | 2 | ||||
-rw-r--r-- | post-inst.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/build-SD-rpi.sh b/build-SD-rpi.sh index 6dc52605..c3617fd6 100755 --- a/build-SD-rpi.sh +++ b/build-SD-rpi.sh @@ -58,7 +58,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ activate_script nc-nextcloud.sh install_script ncp.sh activate_script nc-init.sh - activate_script post-inst.sh + install_script post-inst.sh # harden SSH further for Raspbian sed -i 's|^#PermitRootLogin .*|PermitRootLogin no|' /etc/ssh/sshd_config @@ -51,7 +51,7 @@ install_script etc/ncp-config.d/nc-nextcloud.sh activate_script etc/ncp-config.d/nc-nextcloud.sh install_script ncp.sh activate_script etc/ncp-config.d/nc-init.sh -[[ -f /.ncp-image ]] && activate_script post-inst.sh +[[ -f /.ncp-image ]] && install_script post-inst.sh popd echo "Done. diff --git a/post-inst.sh b/post-inst.sh index 7a19640c..0a202bc7 100644 --- a/post-inst.sh +++ b/post-inst.sh @@ -8,7 +8,7 @@ # More at nextcloudpi.com # -configure() +install() { # stop mysqld and redis mysqladmin -u root shutdown |