This commit is contained in:
Mateusz779 2023-04-13 13:38:36 +02:00
parent e361606807
commit d31459288c
2 changed files with 3 additions and 3 deletions

2
app.py
View File

@ -8,7 +8,7 @@ import utils
import shutil import shutil
app = Flask(__name__) app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = "configs/squash" app.config['UPLOAD_FOLDER'] = "squash"
app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB
def ssh_thread_function(): def ssh_thread_function():

View File

@ -92,8 +92,8 @@ sed -i '1s/.*/['"$name"']/' /tmp/output/vpn/$(basename "$ini")
cd /tmp/output cd /tmp/output
mkdir configs mkdir configs
mv * configs mv * configs
mkdir -t $CONFIGS/squash mkdir $CONFIGS/squash
mkdir -t $CONFIGS/squash/$name mkdir $CONFIGS/squash/$name
mksquashfs . $CONFIGS/squash/$name.squashfs mksquashfs . $CONFIGS/squash/$name.squashfs
cp /tmp/output/configs/vpn/$name.pub $CONFIGS/squash/$name.pub cp /tmp/output/configs/vpn/$name.pub $CONFIGS/squash/$name.pub