Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-11-22 19:09:44 +0300
committernachoparker <nacho@ownyourbits.com>2017-11-22 21:26:29 +0300
commit6883aa2da7cd91df8eb849170fa3125b60c27a70 (patch)
treeca9e504ab2c9bfa6228b8180e226d6d2193849d5 /install.sh
parent6fe08e6858fcef17ec052e4a679d90dbcb8d1962 (diff)
added armbian support
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 683d7388..4d91eaeb 100644
--- a/install.sh
+++ b/install.sh
@@ -53,10 +53,18 @@ activate_script etc/nextcloudpi-config.d/nc-init.sh
[[ "$APACHE_EXISTS" != "" ]] && \
a2enmod status reqtimeout env autoindex access_compat auth_basic authn_file authn_core alias access_compat
-# cleanup
cd -
rm -rf $TMPDIR
+# extra cleanup only in image generation
+[[ -f /.ncp-image ]] && {
+ apt-get autoremove -y
+ apt-get clean
+ rm /var/lib/apt/lists/* -r
+ rm /.ncp-image
+}
+
+
echo "Done.
Type 'sudo nextcloudpi-config' to configure NCP
@@ -66,6 +74,8 @@ Access NextCloudPi panel on nextcloudpi.local:4443
Access Nextcloud on nextcloudpi.local
"
+exit 0
+
# License
#
# This script is free software; you can redistribute it and/or modify it