diff options
Diffstat (limited to 'post-inst.sh')
-rw-r--r-- | post-inst.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/post-inst.sh b/post-inst.sh index 8be379a7..986a6661 100644 --- a/post-inst.sh +++ b/post-inst.sh @@ -8,7 +8,7 @@ # More at nextcloudpi.com # -install() +configure() { # stop mysqld and redis mysqladmin -u root shutdown @@ -18,10 +18,8 @@ install() # cleanup all NCP extras source /usr/local/etc/library.sh - cd /usr/local/etc/ncp-config.d/ - for script in *.sh; do - cleanup_script $script - done + find /usr/local/bin/ncp -name '*.sh' | \ + while read script; do cleanup_script $script; done # clean packages and installation logs apt-get autoremove -y |