diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-24 20:24:22 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-24 20:24:55 +0300 |
commit | 86ab526cd904318a044af82b8d470cd2929068cf (patch) | |
tree | c1c6f401d6a63318a2af9ab119b8d7fd7372a4a0 /nextcloudpi.sh | |
parent | c0cb88088c2d0e5d7c7e19d7af11fce8b2e87d3b (diff) |
build: fix cleanupv0.37.3
Diffstat (limited to 'nextcloudpi.sh')
-rw-r--r-- | nextcloudpi.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/nextcloudpi.sh b/nextcloudpi.sh index d07325f5..cf12719b 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -204,52 +204,6 @@ EOF configure() { :; } -cleanup() -{ - apt-get autoremove -y - apt-get clean - rm /var/lib/apt/lists/* -r - rm -f /home/pi/.bash_history - - # remove QEMU specific rules - rm -f /etc/udev/rules.d/90-qemu.rules - - # restore expand filesystem on first boot - cat > /etc/init.d/resize2fs_once <<'EOF' -#!/bin/sh -### BEGIN INIT INFO -# Provides: resize2fs_once -# Required-Start: -# Required-Stop: -# Default-Start: 3 -# Default-Stop: -# Short-Description: Resize the root filesystem to fill partition -# Description: -### END INIT INFO - -. /lib/lsb/init-functions - -case "$1" in - start) - log_daemon_msg "Starting resize2fs_once" && \ - resize2fs /dev/mmcblk0p2 && \ - update-rc.d resize2fs_once remove && \ - rm /etc/init.d/resize2fs_once && \ - log_end_msg $? - ;; - *) - echo "Usage: $0 start" >&2 - exit 3 - ;; -esac -EOF - chmod +x /etc/init.d/resize2fs_once - systemctl enable resize2fs_once - - rm /.ncp-image - - systemctl disable ssh -} # License # |