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/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2020-08-02 18:56:09 +0300
committernachoparker <nacho@ownyourbits.com>2020-08-02 18:57:57 +0300
commitdda010bed44d6e764fa9e3c2b41295b15317d2b3 (patch)
tree06e8a2acd96b70cf38e2e07f46b0a473d758e7b0 /bin
parent99cfe9bc873409a20aea8add0dca91e8ac1d3995 (diff)
nc-ramlogs: pin versionv1.28.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/ncp/SYSTEM/nc-ramlogs.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ncp/SYSTEM/nc-ramlogs.sh b/bin/ncp/SYSTEM/nc-ramlogs.sh
index 88b0e41b..5cf8d41f 100644
--- a/bin/ncp/SYSTEM/nc-ramlogs.sh
+++ b/bin/ncp/SYSTEM/nc-ramlogs.sh
@@ -17,16 +17,17 @@ is_active()
install()
{
+ VERSION=1.5.2
[[ -d /var/log.hdd ]] || [[ -d /var/hdd.log ]] && { echo "log2ram detected, not installing"; return; }
cd /tmp
- curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz
+ curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/${VERSION}.tar.gz
tar xf log2ram.tar.gz
- cd log2ram-master
+ cd log2ram-${VERSION}
sed -i '/systemctl -q is-active log2ram/d' install.sh
sed -i '/systemctl enable log2ram/d' install.sh
chmod +x install.sh && sudo ./install.sh
cd ..
- rm -r log2ram-master log2ram.tar.gz
+ rm -r log2ram-${VERSION} log2ram.tar.gz
rm /etc/cron.daily/log2ram /usr/local/bin/uninstall-log2ram.sh
}