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
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-04-04 15:21:10 +0300
committernachoparker <nacho@ownyourbits.com>2018-04-04 20:32:07 +0300
commit16e245cf697a88917d07fc0f72af4d27edc1e34b (patch)
tree2c5b40065e7cd31fd9905ad8e65b290dedb3cc15 /etc
parent8a2d30a6b2cf335098391b6ccf985b14cafd1fee (diff)
ncp-web: check for updates upon first runv0.53.20
Diffstat (limited to 'etc')
-rw-r--r--etc/nextcloudpi-config.d/nc-swapfile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-swapfile.sh b/etc/nextcloudpi-config.d/nc-swapfile.sh
index 4dfd2212..6f435c06 100644
--- a/etc/nextcloudpi-config.d/nc-swapfile.sh
+++ b/etc/nextcloudpi-config.d/nc-swapfile.sh
@@ -21,7 +21,7 @@ DESCRIPTION="Move and resize your swapfile. Recommended to move to a permanent U
is_active()
{
local DIR=$( swapon -s | sed -n 2p | awk '{ print $1 }' )
- [[ "$DIR" != "/var/swap" ]]
+ [[ "$DIR" != "" ]] && [[ "$DIR" != "/var/swap" ]]
}
configure()