Commit fbd527ba authored by ekimia's avatar ekimia

Remove usage of 'to_keep' directory. Use existing Trash instead

parent 3d3aa17d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment