From fbd527bacfdbcd10ad277ccebea549734f0e539b Mon Sep 17 00:00:00 2001 From: ekimia Date: Mon, 10 Jun 2019 17:36:05 +0200 Subject: [PATCH] Remove usage of 'to_keep' directory. Use existing Trash instead --- utils/libre | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/libre b/utils/libre index 0091001..2399fa0 100755 --- a/utils/libre +++ b/utils/libre @@ -91,10 +91,10 @@ case "$1" in cd /data/domains tar cvzf ${2}.tgz ./${2} if [ -f ./${2}.tgz ]; then - if [ ! -d /data/domains/to_keep/ ]; then - mkdir /data/domains/to_keep/ + if [ ! -d /data/trash/ ]; then + mkdir /data/trash/ fi - mv ${2}.tgz /data/domains/to_keep/ + mv ${2}.tgz /data/trash/ rm -rf /data/domains/${2} rm -rf /system/haproxy/certs/${2} rm /system/haproxy/haproxy/certs/${2}.pem