From d31459288c057defc0974c29ae1012b8eba10420 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Thu, 13 Apr 2023 13:38:36 +0200 Subject: [PATCH] - --- app.py | 2 +- configs/create.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index f70efa7..3a18907 100644 --- a/app.py +++ b/app.py @@ -8,7 +8,7 @@ import utils import shutil app = Flask(__name__) -app.config['UPLOAD_FOLDER'] = "configs/squash" +app.config['UPLOAD_FOLDER'] = "squash" app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB def ssh_thread_function(): diff --git a/configs/create.sh b/configs/create.sh index b196b6a..daaf000 100755 --- a/configs/create.sh +++ b/configs/create.sh @@ -92,8 +92,8 @@ sed -i '1s/.*/['"$name"']/' /tmp/output/vpn/$(basename "$ini") cd /tmp/output mkdir configs mv * configs -mkdir -t $CONFIGS/squash -mkdir -t $CONFIGS/squash/$name +mkdir $CONFIGS/squash +mkdir $CONFIGS/squash/$name mksquashfs . $CONFIGS/squash/$name.squashfs cp /tmp/output/configs/vpn/$name.pub $CONFIGS/squash/$name.pub